* infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
fb66883a
PA
12008-12-11 Pedro Alves <pedro@codesourcery.com>
2
3 * infrun.c (handle_inferior_event): On a TARGET_WAITKIND_EXITED or
4 TARGET_WAITKIND_SIGNALLED, switch inferior_ptid to the event ptid.
5 * linux_thread_db.c (thread_db_wait): On a TARGET_WAITKIND_EXITED
6 or TARGET_WAITKIND_SIGNALLED, return the ptid the beneath target
7 returned.
8 * inf-ptrace.c (inf_ptrace_wait): Return inferior_ptid instead of
9 minus_one_ptid if the inferior disappeared.
10 * rs6000-nat.c (rs6000_wait): Likewise.
11 * spu-linux-nat.c (spu_child_wait): Likewise.
12
7c8adf68
TT
132008-12-11 Tom Tromey <tromey@redhat.com>
14
15 PR macros/2564:
16 * c-exp.y (macro_original_text, expansion_obstack,
17 expression_macro_scope): New globals.
18 (scan_macro_expansion): New function.
19 (scanning_macro_expansion): Likewise.
20 (finished_macro_expansion): Likewise.
21 (scan_macro_cleanup): Likewise.
22 (c_parse): Find macro scope. Initialize obstack.
23 * c-lang.h (scan_macro_expansion, scanning_macro_expansion,
24 finished_macro_expansion, expression_macro_lookup_func,
25 expression_macro_lookup_baton): Remove.
26 * c-lang.c (scan_macro_expansion, scanning_macro_expansion,
27 finished_macro_expansion, expression_macro_lookup_func,
28 expression_macro_lookup_baton): Remove.
29 (macro_original_text, macro_expanded_text,
30 c_preprocess_and_parse): Remove.
31 (c_language_defn, cplus_language_defn, asm_language_defn,
32 minimal_language_defn): Use c_parse.
33
1c7819ef
PA
342008-12-10 Pedro Alves <pedro@codesourcery.com>
35
36 * infcmd.c (until_next_command, finish_backward): Use get_frame_pc
37 instead of read_pc.
38
b05dcbb7
TT
392008-12-09 Tom Tromey <tromey@redhat.com>
40
41 PR gdb/1815:
42 * cli/cli-decode.c (delete_cmd): Forward declare.
43 (delete_cmd): Now static. Change return type. Remove command
44 from alias chain. Rewrite.
45 (add_cmd): Initialize new fields. Update cmd_pointer on all
46 aliases.
47 (add_alias_cmd): Put command on alias chain.
48 * command.h (delete_cmd): Don't declare.
49 * cli/cli-decode.h (delete_cmd): Don't declare.
50 (struct cmd_list_element) <aliases, alias_chain>: New fields.
51
a8111142
TT
522008-12-09 Tom Tromey <tromey@redhat.com>
53
54 * config.in, configure: Rebuild.
55 * configure.ac: Check for locale.h, setlocale. Call
56 AM_LC_MESSAGES.
57 * acinclude.m4: Include lcmessage.m4.
58
4100683b
JK
592008-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
60
61 * remote.c (remote_parse_stop_reply): Use REG only after its NULL check.
62
4be15b7a
JB
632008-12-08 Joel Brobecker <brobecker@adacore.com>
64
65 * python/python-value.c (values_in_python): Add specific initialization
66 to NULL to work-around a MacOS linker bug.
67
39d61571
JK
682008-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
69
70 Fix loc_type of `bp_location's created by update_watchpoint.
71 * breakpoint.c (allocate_bp_location): Remove the bp_type parameter.
72 Replace bp_type by bpt->type. Update prototype. All callers updated.
73 (add_location_to_breakpoint): Remove the bp_type parameter.
74 Replace bp_type by b->type. All callers updated.
75 (set_breakpoint_location_function): Replace bptype by b->type.
76
4cd9bd08
JK
772008-12-07 Jan Kratochvil <jan.kratochvil@redhat.com>
78
79 * breakpoint.c (update_global_location_list): Fix the comment.
80
1641cfcc
PA
812008-12-05 Pedro Alves <pedro@codesourcery.com>
82
83 * infcmd.c (step_1, step_once): Look up the stepping range based
84 on the current frame's PC, not on stop_pc.
85
116e0965
JK
862008-12-05 Jan Kratochvil <jan.kratochvil@redhat.com>
87
88 Fix compilation on 32-bit host configurations.
89 * ia64-tdep.c (ia64_breakpoint_from_pc): Suffix a constant by `LL'.
90
acdb24a9
TG
912008-12-05 Tristan Gingold <gingold@adacore.com>
92
93 * i386-darwin-nat.c (i386_darwin_sstep_at_sigreturn): New function.
94 (amd64_darwin_sstep_at_sigreturn): New function.
95 (darwin_set_sstep): The sigreturn is a special case: the trace flag
96 must be set in the mcontext structure.
97
e71c9293
PA
982008-12-05 Pedro Alves <pedro@codesourcery.com>
99
100 * infcmd.c (step_once): Remove dead code.
101
3b676233
DE
1022008-12-04 Doug Evans <dje@google.com>
103
104 * infcall.c (call_function_by_hand): Clean up use of local dummy_addr.
105
a020da56
DE
1062008-12-02 Doug Evans <dje@google.com>
107
108 * infrun.c (handle_inferior_event): Remove redundant resetting of
109 stepping_past_singlestep_breakpoint.
110
e0665bc8
PA
1112008-12-02 Pedro Alves <pedro@codesourcery.com>
112
113 * target.h (target_get_osdata): Describe.
114 * osdata.h (make_cleanup_osdata_free): Declare.
115 * osdata.c (osdata_item_clear): Define even if HAVE_LIBEXPAT is
116 not defined.
117 (osdata_free_cleanup): New.
118 (make_cleanup_osdata_free): New.
119 (get_osdata): Fix leak.
120 (info_osdata_command): Use make_cleanup_osdata_free.
121 (info_processes_command): Delete.
122 (_initialize_osdata): Drop undocumented "info processes" alias.
123 * mi/mi-main.c (mi_cmd_list_thread_groups): Fix leak.
124
e0740f77
JK
1252008-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 Fix resolving external references to TLS variables.
128 * findvar.c: Include `objfiles.h'.
129 (read_var_value <LOC_UNRESOLVED>): New variable `obj_section'. Handle
130 SEC_THREAD_LOCAL variables.
131 * printcmd.c (address_info <LOC_UNRESOLVED>): Handle SEC_THREAD_LOCAL
132 variables.
133
c29235ac
DE
1342008-12-02 Doug Evans <dje@google.com>
135
136 * infrun.c (handle_inferior_event): Delete unused local tp.
137
07e059b5
VP
1382008-12-02 Pedro Alves <pedro@codesourcery.com>
139 Vladimir Prus <vladimir@codesourcery.com>
140
141 Implement -list-thread-groups --available
142
143 * Makefile.in (XMLFILES): Add osdata.dtd.
144 (SFILES): Add osdata.c.
145 (COMMON_OBS): Add osdata.o.
146 * linux-nat.c: Include pwd.h, sys/types.h, gdb_dirent.h and xml-support.h.
147 (linux_nat_xfer_osdata): New function.
148 (linux_xfer_partial): Handle TARGET_OBJECT_OSDATA.
149 * osdata.c: New file.
150 * osdata.h: New file.
151 * remote.c (PACKET_qXfer_osdata): New packet enum.
152 (remote_protocol_features): Add "qXfer:osdata:read".
153 (remote_read_qxfer): Handle TARGET_OBJECT_OSDATA.
154 (extended_remote_can_run): New.
155 (init_extended_remote_ops): Set to_can_run to
156 extended_remote_can_run.
157 (_initialize_remote): Add packet config command for
158 "qXfer:osdata:read".
159 * xml-support.c (obstack_xml_printf): New function.
160 * xml-support.h (obstack_xml_printf): Declare.
161 * target.c (target_get_osdata): New function.
162 * target.h (enum target_object): Add TARGET_OBJECT_OSDATA.
163 (target_os_data): Declare.
164 * features/osdata.dtd: New file.
165 * mi/mi-main.c (mi_list_thread_groups): Handle the --available
166 option.
167
f3c85de6
DE
1682008-12-01 Doug Evans <dje@google.com>
169
170 * infrun.c (proceed): Delete unused local stop_signal.
171
a80b95ba
TG
1722008-11-27 Tristan Gingold <gingold@adacore.com>
173
174 * NEWS: Add entry for new native configuration: Darwin.
175 * configure.host: Add Darwin host.
176 * configure.tgt: Add Darwin target.
177 * defs.h (enum gdb_osabi): Add GDB_OSABI_DARWIN.
178 * osabi.c (gdb_osabi_names): Add name for Darwin abi.
179 * i386-darwin-nat.c: New file.
180 * i386-darwin-tdep.c: New file.
181 * machoread.c: New file.
182 * darwin-nat-info.c: New file.
183 * darwin-nat.c: New file.
184 * darwin-nat.h: New file.
185 * darwin.defs: New file.
186 * config/i386/darwin.mh: New file.
187
5a85c521
TG
1882008-11-26 Tristan Gingold <gingold@adacore.com>
189
190 * MAINTAINERS: Add myself for write after approval privileges.
191
3e3d7139
JG
1922008-11-26 Jerome Guitton <guitton@adacore.com>
193
194 * value.h (allocate_value_lazy): New function declaration.
195 (value_free): Remove macro, make it a function.
196 * value.c (value): Move actual content outside of the memory space
197 of the struct; add a pointer to this actual content.
198 (allocate_value_lazy, allocate_value_contents): New function.
199 (allocate_value): Reimplement using these two new functions.
200 (value_contents_raw, value_contents_all_raw): If no memory
201 has been allocated yet for the actual content, allocate it.
202 (value_contents_all): Resync with struct value's changes.
203 (value_free): New function.
204 (value_copy, value_primitive_field): Use new function
205 allocate_value_lazy to allocate lazy values.
206 (value_change_enclosing_type): Resync with struct value's changes.
207 As the value is not reallocated, remove the special handling for
208 the value chain (now obsolete).
209 * valops.c (value_at_lazy): Use new function allocate_value_lazy.
210 (value_fetch_lazy): Allocate value content. Use allocate_value_lazy
211 to allocate lazy values.
212 (value_slice): Use allocate_value_lazy to allocate lazy values.
213
939c61fa
JK
2142008-11-25 Jan Kratochvil <jan.kratochvil@redhat.com>
215
216 Fix automatic restoration of breakpoints memory for ia64.
217 * ia64-tdep.c: New #if check on BREAKPOINT_MAX vs. BUNDLE_LEN.
218 (ia64_memory_insert_breakpoint): New comment part for SHADOW_CONTENTS
5f019e58 219 content. Remove variable instr. New variable cleanup. Disable
939c61fa
JK
220 automatic breakpoints restoration. PLACED_SIZE and SHADOW_LEN are now
221 set larger, to BUNDLE_LEN - 2. Variable `bundle' type update. Return
222 error if even just final target_write_memory has failed.
223 (ia64_memory_remove_breakpoint): Rename variables bundle to bundle_mem
224 and instr to instr_saved. New variables bundle_saved and
225 instr_breakpoint. Comment new reasons why we need to disable automatic
226 restoration of breakpoints. Assert PLACED_SIZE and SHADOW_LEN. New
227 check of the original memory content. Return error if even just final
228 target_write_memory has failed.
229 (ia64_breakpoint_from_pc): Implement the emulation of permanent
230 breakpoints compatible with current bp_loc_is_permanent.
231 (template_encoding_table): Make it `const'.
232 * breakpoint.c (bp_loc_is_permanent): Support unsupported software
233 breakpoints. New variables `cleanup' and `retval'.
939c61fa 234
8acb6b92
TT
2352008-11-24 Tom Tromey <tromey@redhat.com>
236
237 * ada-lang.c (value_from_contents_and_address): Move...
238 * value.c: ... here.
239 * ada-lang.h (value_from_contents_and_address): Move
240 declaration...
241 * value.h: ... here.
242
f9e31323
TT
2432008-11-24 Paul Pluzhnikov <ppluzhnikov@google.com>
244
245 * valprint.c (val_print_array_elements): Pass correct
246 element address to val_print.
247
a0b7aece
JK
2482008-11-24 Jan Kratochvil <jan.kratochvil@redhat.com>
249
250 Fix access of an already freed memory.
251 * parse.c (parse_field_expression): Call xstrdup on `*name'.
252 * completer.c (expression_completer): Free fieldname.
253
d962ef82
DJ
2542008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
255
256 PR gdb/2474
257 * remote.c (remote_read_description_p): New function.
258 (remote_start_remote): Try to fetch the target description
259 before adding shared libraries. Try again later if the
260 target is running but stopped.
261 (remote_open_1): Mark extended targets as exited by default.
262 (remote_read_description): Check target_has_execution.
263
88828b32
JG
2642008-11-24 Jerome Guitton <guitton@adacore.com>
265
266 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Use
267 the frame address in block instead of the return address to
268 locate the mdebug PDR of the frame.
269
d81191fc
JB
2702008-11-21 Joel Brobecker <brobecker@adacore.com>
271
272 Remove the unused BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
273
274 * breakpoint.h (enum bpstat_what_main_action): Remove
275 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
276 * breakpoint.c (bpstat_what): Delete catch_shlib_event from enum class.
277 Remove the BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK column from
278 variable table.
279 * infrun.c (wait_for_inferior): Remove handling of
280 BPSTAT_WHAT_CHECK_SHLIBS_RESUME_FROM_HOOK.
281
a9322a30
TT
2822008-11-21 Tom Tromey <tromey@redhat.com>
283
284 * configure: Rebuild.
285 * configure.ac: Merge calls to AC_CHECK_FUNCS, AC_CHECK_HEADERS,
286 AC_CHECK_DECLS, and AC_CHECK_MEMBERS.
287
ca30a762
TT
2882008-11-21 Tom Tromey <tromey@redhat.com>
289
290 * python/python-internal.h (PyGILState_Ensure): New define.
291 (PyGILState_Release): Likewise.
292 (PyEval_InitThreads): Likewise.
293 (PyThreadState_Swap): Likewise.
294 (PyEval_InitThreads): Likewise.
295 * python/python.c (_initialize_python): Initialize threads.
296 Release GIL.
297 (eval_python_from_control_command): Acquire GIL.
298 (python_command): Likewise.
299 * python/python-internal.h (make_cleanup_py_restore_gil):
300 Declare.
301 * python/python-utils.c (py_gil_restore): New function.
302 (make_cleanup_py_restore_gil): Likewise.
303
d2bf72c0
DE
3042008-11-20 Doug Evans <dje@google.com>
305
306 * frame.c (frame_debug_got_null_frame): Remove file arg.
307 All callers updated.
308
c7e8a53c
PA
3092008-11-20 Pedro Alves <pedro@codesourcery.com>
310
311 * infrun.c (resume): If following a fork, also reset regcache,
312 gdbarch and pc.
313
e2fd701e
DE
3142008-11-20 Doug Evans <dje@google.com>
315
316 * printcmd.c (sym_info): Don't print the offset if it's zero.
317
607cecd2
PA
3182008-11-20 Pedro Alves <pedro@codesourcery.com>
319
320 * infrun.c (resume): If following a fork, reread the current
321 thread. Avoid dereferencing a possibly dangling pointer.
322
642fd101
DE
3232008-11-19 Doug Evans <dje@google.com>
324
325 * inferior.h (proceed_to_finish): Delete, unused.
326 (stop_registers): Tweak comment.
327 * infrun.c (stop_registers): Tweak comment.
328
9bc7b6c6
KB
3292008-11-19 Kevin Buettner <kevinb@redhat.com>
330
331 * frv-tdep.c (frv_skip_main_prologue): New function.
332 (frv_gdbarch_init): Register frv_skip_main_prologue.
333 * solib-frv.c (fetch_loadmap): Return early when no segments are
334 found.
335 (frv_relocate_main_executable): Return early when both interpreter
336 and executable loadmap addresses are zero.
337
d0107bb6
BW
3382008-11-19 Bob Wilson <bob.wilson@acm.org>
339
340 * xtensa-config.c (rmap): Remove entries for ar32 through ar63. Add
341 threadptr, scompare1, mmid, epc5, epc6, epc7, eps5, eps6, eps7,
342 excsave5, excsave6, excsave7, cpenable, and vecbase registers.
343 (xtensa_submask0, xtensa_submask1, xtensa_submask2)
344 (xtensa_submask3, xtensa_submask4, xtensa_submask5, xtensa_submask6)
345 (xtensa_submask7, xtensa_submask8, xtensa_submask9, xtensa_submask10)
346 (xtensa_submask11, xtensa_submask12, xtensa_submask13, xtensa_submask14)
347 (xtensa_submask15): Adjust register numbers.
348 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
349 (xtensa_regmap_table): Add entry for scompare1.
350 * regformats/reg-xtensa.dat: Remove ar32 through ar63. Add threadptr
351 and scompare1.
352
6e5abd65
PA
3532008-11-19 Pedro Alves <pedro@codesourcery.com>
354
355 * remote.c (escape_buffer): New.
356 (putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it. Make
357 sure debug output printing a packet buffer goes through a single
358 fprintf_unfiltered call.
359 * utils.c (vfprintf_unfiltered): If outputting timestamps, end
360 output with a newline if it wasn't going to already.
361
15c99a44
PP
3622008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
363
364 * maint.c (maintenance_translate_address): Fix a buglet.
365
2c4ad781
TJB
3662008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
367
368 * features/Makefile (rs6000/powerpc-isa205-32l-expedite,
369 rs6000/powerpc-isa205-altivec32l-expedite,
370 powerpc-isa205-vsx32l-expedite, rs6000/powerpc-isa205-64l-expedite,
371 rs6000/powerpc-isa205-altivec64l-expedite,
372 powerpc-isa205-vsx64l-expedite): New variables.
373 * regformats/rs6000/powerpc-isa205-32l.dat: Generate.
374 * regformats/rs6000/powerpc-isa205-altivec32l.dat: Generate.
375 * regformats/rs6000/powerpc-isa205-vsx32l.dat: Generate.
376 * regformats/rs6000/powerpc-isa205-64l.dat: Generate.
377 * regformats/rs6000/powerpc-isa205-altivec64l.dat: Generate.
378 * regformats/rs6000/powerpc-isa205-vsx64l.dat: Generate.
379
69abc51c
TJB
3802008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
381
382 * ppc-linux-nat.c (ppc_register_u_addr): Add special case to return
383 offset for full 64-bit slot of FPSCR when in 32-bits.
384 (ppc_linux_read_description): Return target description with 64-bit
385 FPSCR when inferior is running on an ISA 2.05 or later processor.
386 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Call
387 initialize_tdec_powerpc_isa205_32l,
388 initialize_tdec_powerpc_isa205_altivec32l,
389 initialize_tdec_powerpc_isa205_vsx32l,
390 initialize_tdec_powerpc_isa205_64l,
391 initialize_tdec_powerpc_isa205_altivec64l and
392 initialize_tdec_powerpc_isa205_vsx64l.
393 * ppc-linux-tdep.h: Add external declaration for
394 tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l,
395 tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_64l,
396 tdesc_powerpc_isa205_altivec64l and tdesc_powerpc_isa205_vsx64l.
397 * features/rs600/powerpc-fpu-isa205.xml: New file.
398 * features/rs600/powerpc-isa205-32l.xml: New file.
399 * features/rs600/powerpc-isa205-64l.xml: New file.
400 * features/rs600/powerpc-isa205-altivec32l.xml: New file.
401 * features/rs600/powerpc-isa205-altivec64l.xml: New file.
402 * features/rs600/powerpc-isa205-vsx32l.xml: New file.
403 * features/rs600/powerpc-isa205-vsx64l.xml: New file.
404 * features/rs600/powerpc-isa205-32l.c: Generate.
405 * features/rs600/powerpc-isa205-64l.c: Generate.
406 * features/rs600/powerpc-isa205-altivec32l.c: Generate.
407 * features/rs600/powerpc-isa205-altivec64l.c: Generate.
408 * features/rs600/powerpc-isa205-vsx32l.c: Generate.
409 * features/rs600/powerpc-isa205-vsx64l.c: Generate.
410
c14c28ba
PP
4112008-11-18 Paul Pluzhnikov <ppluzhnikov@google.com>
412
413 * objfiles.h: New MULTI_OBJFILE_P macro.
414 * printcmd.c (sym_info): Print object name.
415 * maint.c (maintenance_translate_address): Likewise.
416
d5cbbe6e
JB
4172008-11-18 Joel Brobecker <brobecker@adacore.com>
418
419 * NEWS: Document the removal of "catch load" and "catch unload".
420
2e74121d
DE
4212008-11-17 Doug Evans <dje@google.com>
422
423 * infcall.c (call_function_by_hand): Fix punctuation and capitalization
424 on error messages.
425
a7212384
UW
4262008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
427
428 PR gdb/2250
429 * infrun.c (clear_proceed_status_thread): New function.
430 (clear_proceed_status_callback): New function.
431 (clear_proceed_status): In all-stop mode, clear per-thread
432 proceed status of *all* threads, not only the current.
433 (handle_inferior_event): In all-stop mode, if we're stepping
434 one thread, but got some inferior event in another thread
435 that does not cause GDB to break to the user interface,
436 ensure the interrupted stepping operation continues in the
437 original thread.
438 (currently_stepping): Move thread-related tests to ...
439 (currently_stepping_thread): ... this new function.
440 (currently_stepping_callback): New function.
441
66bb093b
VP
4422008-11-17 Vladimir Prus <vladimir@codesourcery.com>
443
444 Implement =thread-selected notification.
445
446 * mi/mi-common.h (struct mi_interp): New, moved from ...
447 * mi/mi-interp.c: ...here.
448 * mi/mi-main.c (mi_execute_command): If the thread changed
449 as result of command, report that.
450
8dd4f202
VP
4512008-11-17 Vladimir Prus <vladimir@codesourcery.com>
452
453 Implement continue/interrupt of thread groups.
454
455 * mi/mi-main.c (proceed_thread_callback): New.
456 (mi_cmd_exec_continue): If --thread-group is specified, resume all
457 threads in that group.
458 (interrupt_thread_callback): New.
459 (mi_cmd_exec_interrupt): If --thread-group is specified, interrupt
460 all threads in that group.
461
6418d433
VP
4622008-11-17 Vladimir Prus <vladimir@codesourcery.com>
463
464 Implement '-target-detach pid'.
465
466 * infcmd.c (detach_command): Make nonstatic.
467 * inferior.h (detach_command): Declare.
468 * mi/mi-cmds.c (mi_cmds): Don't route -target-detach via CLI.
469 * mi/mi-cmds.h (mi_cmd_target_detach): Declare.
470 * mi/mi-main.c (find_thread_of_process, mi_cmd_target_detach): New.
471
3d043ef6
VP
4722008-11-17 Vladimir Prus <vladimir@codesourcery.com>
473
474 Include group-id in thread-created notification.
475
476 * mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include
477 group id in the output.
478
4a92f99b
VP
4792008-11-17 Vladimir Prus <vladimir@codesourcery.com>
480
481 Notification for attach/detach.
482
483 * inferior.c: Call the process observers.
484 * mi/mi-interp.c (mi_new_inferior, mi_inferior_exit): New.
485 (mi_interpreter_init): Register the above.
486
3ee1c036
VP
4872008-11-17 Vladimir Prus <vladimir@codesourcery.com>
488
489 Implement -list-thread-groups.
490
491 * thread.c (print_thread_info): New parameter pid, to print
492 threads of specific process.
493 * gdbthread.h (print_thread_info): New parameter pid.
494 * mi/mi-cmds.c (mi_cmds): Register -list-thread-groups.
495 * mi/mi-cmds.h (mi_cmd_list_thread_groups): New.
496 * mi/mi-main.c (mi_cmd_thread_info): Adjust.
497 (print_one_process, mi_cmd_list_thread_groups): New.
498
283de25f
JB
4992008-11-16 Joel Brobecker <brobecker@adacore.com>
500
501 Remove some unused macros related to the old load/unload catchpoints.
502
503 * breakpoint.c (SOLIB_LOADED_LIBRARY_PATHNAME)
504 (SOLIB_UNLOADED_LIBRARY_PATHNAME, SOLIB_CREATE_CATCH_LOAD_HOOK)
505 (SOLIB_CREATE_CATCH_UNLOAD_HOOK): Delete. No longer used.
506
533be4dd
JB
5072008-11-16 Joel Brobecker <brobecker@adacore.com>
508
509 Remove support for catch load and catch unload commands.
510
511 * breakpoint.h (enum bptype): Remove bp_catch_load and bp_catch_unload.
512 (struct breakpoint): Remove fields dll_pathname and
513 triggered_dll_pathname.
514 (bpstat_get_triggered_catchpoints, ep_is_shlib_catchpoint): Delete.
515 * breakpoint.c (ep_is_catchpoint): Remove handling of
516 bp_catch_load and bp_catch_unload.
517 (print_it_typical, bpstat_check_location, bpstat_what)
518 (print_one_breakpoint_location, print_one_breakpoint_location)
519 (user_settable_breakpoint, allocate_bp_location)
520 (set_raw_breakpoint_without_location, mention, delete_breakpoint,
521 (breakpoint_re_set_one, disable_command, enable_command): Likewise.
522 (ep_is_shlib_catchpoint, bpstat_get_triggered_catchpoints)
523 (catch_load_command_1, catch_unload_command_1): Delete.
524 (_initialize_breakpoint): Remove the "catch load" and "catch unload"
525 command creation.
526 * infrun.c (handle_inferior_event): Remove the handling of
527 load/unload catchpoint events.
528
59205f5a
JB
5292008-11-15 Joel Brobecker <brobecker@adacore.com>
530
531 From Jerome Guitton <guitton@adacore.com>
532 * dwarf2read.c (dwarf2_debug_line_missing_end_sequence_complaint):
533 New function.
534 (dwarf_decode_lines): Detect null file numbers. Detect the end of
535 the line program sequence when no end sequence is emitted.
536
96967637
JB
5372008-11-15 Joel Brobecker <brobecker@adacore.com>
538
539 * ada-lang.c (ada_evaluate_subexp): Improve handling of integer
540 type dereferencing.
541
da8bd9a3
DJ
5422008-11-15 Daniel Jacobowitz <dan@codesourcery.com>
543
544 * NEWS: Mention sparc64-linux-gnu gdbserver support.
545
dfb64f85
DJ
5462008-11-14 Daniel Gutson <dgutson@codesourcery.com>
547
548 * configure.tgt (sparc64-*-linux*): Added gdbserver support.
549 * regformats/reg-sparc64.dat: New file.
550
59669435
TT
5512008-11-14 Tom Tromey <tromey@redhat.com>
552
553 PR mi/2549:
554 * mi/mi-main.c (get_register): Use get_formatted_print_options.
555
06be140c
JB
5562008-11-13 Joel Brobecker <brobecker@adacore.com>
557
558 * printcmd.c: define PRINTF_HAS_LONG_LONG only if not yet defined.
559
759cc328
UW
5602008-11-13 Ulrich Weigand <uweigand@de.ibm.com>
561
562 * auxv.c (fprint_target_auxv): Handle AT_BASE_PLATFORM and
563 AT_EXECFN. Re-sort AT_SECURE.
564
73e113d4
JK
5652008-11-13 Jan Kratochvil <jan.kratochvil@redhat.com>
566
567 * monitor.c (monitor_insert_breakpoint): Remove unused variable `bp'.
568
c31ad2a1
JB
5692008-11-13 Joel Brobecker <brobecker@adacore.com>
570
571 * ia64-tdep.c: Remove commented out #define.
572
84290f2f
JB
5732008-11-12 Joel Brobecker <brobecker@adacore.com>
574
575 From Joel Sherrill <joel.sherrill@oarcorp.com>
576 * remote-sim.c (gdbsim_mourn_inferior): Use "target" parameter
577 instead of the "gdbsim_ops" global.
578
de04a248
DE
5792008-11-11 Doug Evans <dje@google.com>
580
581 * infcall.c (call_function_by_hand): Handle inferior exit.
582
3c8b2eda
TJB
5832008-11-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
584
585 * remote-sim.c (gdbsim_create_inferior, gdbsim_mourn_inferior): Add
586 missing struct target_ops argument.
587
f5d9a292
JS
5882008-11-11 Joel Sherrill <joel.sherrilL@oarcorp.com>
589
590 * MAINTAINERS: Add myself for write after approval privileges.
591
de8ee0e2
TT
5922008-11-10 Tom Tromey <tromey@redhat.com>
593
594 * gdbtypes.c (copy_type_recursive): Clear new fields.
595
b03a6ea4
TT
5962008-11-10 Tom Tromey <tromey@redhat.com>
597
598 * cli/cli-cmds.c (source_script): Clean up full_pathname. Run
599 cleanups on early return.
600
136d6dae
VP
6012008-11-09 Vladimir Prus <vladimir@codesourcery.com>
602
603 Kill pthread_ops_hack
604
605 * target.h (struct target_ops): Make to_attach, to_detach,
606 to_create_inferior and to_mourn_inferior accept a pointer
607 to struct target_ops.
608 (target_attach, target_create_inferior, target_create_inferior):
609 Convert from macros to function. Find the right target to
610 invoke a method of.
611 (find_default_attach, find_default_create_inferior): New parameter
612 ops.
613 * corefile.c (core_file_command): Pass target to to_detach.
614 * corelow.c (core_detach): Add 'ops' parameter.
615 * fork-child.c (fork_inferior): Return the pid. Allow
616 init_trace_fun to be NULL.
617 * inf-ptrace (ptrace_ops_hack): Remove.
618 (inf_ptrace_him): Remove, moving all logic into....
619 (inf_ptrace_create_inferior): ... here. Push the target
620 passed as parameter.
621 (inf_ptrace_mourn_inferior, inf_ptrace_attach, inf_ptrace_detach):
622 Push/pop target passed as parameter, no ptrace_ops_hack.
623 (inf_ptrace_target): Don't remember result.
624 * inferior.h (fork_inferior): Adjust prototype.
625 * linux-nat.c (linux_nat_create_inferior, linux_nat_attach)
626 (linux_nat_detach, linux_nat_mourn_inferior): New parameter ops.
627 Pass it to linux_ops target.
628 * linux-thread-db.c (thread_db_detach, thread_db_mourn_inferior):
629 New parameter ops. Pass it to the target beneath.
630 * remote.c (remote_mourn, extended_remote_mourn, remote_detach)
631 (extended_remote_create_inferior): New parameter ops. Pass it
632 further.
633 * target.c (debug_to_attach, debug_to_detach)
634 (debug_to_mourn_inferior): New parameter ops.
635 (target_create_inferior): New.
636 (update_current_target): Do not inherit to_attach, to_detach,
637 to_create_inferiour, to_mourn_inferior. Do not default
638 to_detach and to_mourn_inferior.
639 (target_detach): Find the right target to use.
640 (target_mourn_inferior): New.
641 (find_default_attach, find_default_create_inferior): New parameter
642 ops. Pass the found target when calling its method.
643 (init_dummy_target): Provide fallback definition of to_detach.
644 (target_attach): New.
645 (debug_to_attach, debug_to_detach, debug_to_create_inferior)
646 (debug_to_mourn_inferiour): New parameter ops.
647 * aix-thread.c: Adjust.
648 * bsd-uthread.c: Adjust.
649 * gnu-nat.c: Adjust.
650 * go32-nat.c: Adjust.
651 * hpux-thread.c: Adjust.
652 * inf-ttrace.c: Ajust.
653 * monitor.c: Adjust.
654 * nto-procfs.c: Adjust.
655 * procfs.c: Adjust.
656 * remote-m32r-sdi.c: Adjust.
657 * remote-mips.c: Adjust.
658 * remote-sim.c: Adjust.
659 * rs6000-nat.c: Adjust.
660 * sol-thread.c: Adjust.
661 * win32-nat.c: Adjust.
662 * dec-thread.c: Adjust.
663
ed406532
VP
6642008-11-09 Vladimir Prus <vladimir@codesourcery.com>
665
666 * thread.c (print_thread_info): Eliminate now useless checks
667 for exited threads.
668
48fb2d97
PA
6692008-11-06 Pedro Alves <pedro@codesourcery.com>
670
671 * i386-dicos-tdep.c (i386_dicos_init_abi): Set decr_pc_after_break
672 to 0.
673
29c87f7f
PA
6742008-11-05 Pedro Alves <pedro@codesourcery.com>
675
676 * remote.c (notice_new_inferiors): Add a new inferior only when
677 we're going to add a new thread.
678
e0ba6746
PA
6792008-11-05 Pedro Alves <pedro@codesourcery.com>
680
681 * defs.h (add_inferior_continuation)
682 (do_all_inferior_continuations)
683 (discard_all_inferior_continuations): Declare.
684 * utils.c (add_inferior_continuation)
685 (do_all_inferior_continuations)
686 (discard_all_inferior_continuations): New.
687 * inferior.h (struct inferior) <continuations>: New field.
688 * inferior.c (free_inferior): Discard all the inferior
689 continuations.
690 * inf-loop.c (inferior_event_handler): Do all current inferior
691 continuations.
692 * infcmd.c (attach_command): Register an inferior continuation
693 instead of a thread continuation.
694 * infrun.c (handle_inferior_event): If stop_soon is
695 STOP_QUIETLY_NO_SIGSTOP, also expect a TARGET_SIGNAL_0.
696
d3fd5342
PA
6972008-11-04 Pedro Alves <pedro@codesourcery.com>
698
699 * inf-loop.c (inferior_event_handler): On INF_ERROR and
700 INF_REG_EVENT throwing, don't call target_async or pop_target.
701 Call pop_all_targets_above.
702 * remote.c (remote_close): Call remote_terminal_ours. Don't call
703 signal or target_async.
704
1c9f699c
DJ
7052008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
706
707 * eval.c (evaluate_subexp_standard): Assert that there is at
708 least one array dimension.
709
cb0362bb
VP
7102008-11-03 Vladimir Prus <vladimir@codesourcery.com>
711
712 Make attach_command exception-safe
713 * infcmd.c (attach_command): Call async_enable_stdin
714 if exception is thrown.
715
9bc9e927
PA
7162008-11-03 Pedro Alves <pedro@codesourcery.com>
717
718 * gdbarch.sh (has_global_solist): Mention global breakpoints.
719 * gdbarch.h: Regenerate.
720
50c71eaf
PA
7212008-11-03 Pedro Alves <pedro@codesourcery.com>
722
723 * remote.c (remote_start_remote): If the solib list is global,
724 fetch libraries and insert breakpoints after connecting.
725 * infcmd.c (post_create_inferior): If the solist is shared between
726 inferiors, no need to refetch it on every new inferior.
727 (detach_command): If the shared library list is shared between
728 inferiors, then don't clear it on every inferior detach.
729 * gdbarch.sh (has_global_solist): New.
730 * i386-dicos-tdep.c (i386_dicos_init_abi): Set
731 gdbarch_has_global_solist.
732 * target.c (target_pre_inferior): If the shared library list is
733 shared between inferiors, then don't clear it here, neither
734 invalidate the memory regions or clear the target description.
735 (target_detach): If the shared library list is shared between
736 inferiors, then don't remove breakpoints from the target here.
737 (target_disconnect): Comment.
738 * solib.c (update_solib_list): Check for null_ptid.
739 * breakpoint.c (insert_breakpoints, update_global_location_list):
740 If the shared library list is shared between inferiors, insert
741 breakpoints even if there's no execution.
742 (breakpoint_init_inferior): If the shared library list is shared
743 between inferiors, don't delete breakpoints or mark them
744 uninserted here.
745
746 * gdbarch.c, gdbarch.h: Regenerate.
747
2fdf0e42
PA
7482008-10-31 Pedro Alves <pedro@codesourcery.com>
749
750 * inferior.h (inferior_ignoring_leading_exec_events): Delete
751 declaration.
752
3990c31b
PA
7532008-10-31 Pedro Alves <pedro@codesourcery.com>
754
755 * inferior.h (write_inferior_status_register): Delete.
756 * infrun.c (write_inferior_status_register): Delete.
757
2a2546f0 7582008-10-30 Tom Tromey <tromey@redhat.com>
f3134b88
TT
759
760 * value.c (coerce_array): Use check_typedef.
761
2a2546f0 7622008-10-30 Tom Tromey <tromey@redhat.com>
724b958c
TT
763
764 * cli/cli-logging.c (handle_redirections): Make a cleanup.
765 * reggroups.c (maintenance_print_reggroups): Make a cleanup.
766 * regcache.c (regcache_print): Make a cleanup.
767 * maint.c (maintenance_print_architecture): Make a cleanup.
768 * dummy-frame.c (maintenance_print_dummy_frames): Make a cleanup.
769
a05016c0
TT
7702008-10-30 Tom Tromey <tromey@redhat.com>
771
772 * utils.c (make_cleanup_close): Use make_cleanup_dtor.
773 (do_close_cleanup): Don't free 'fd'.
774
2a2546f0 7752008-10-30 Tom Tromey <tromey@redhat.com>
9fe4a216
TT
776
777 * source.c (symtab_to_fullname): Test 'r >= 0'.
778 (psymtab_to_fullname): Likewise.
779 (get_filename_and_charpos): Make a cleanup.
780 (forward_search_command): Likewise.
781 (reverse_search_command): Likewise.
782 * exec.c (exec_file_attach): Close scratch_chan on failure.
783 * nto-procfs.c (procfs_open): Make a cleanup.
784 (procfs_pidlist): Likewise.
785 (do_closedir_cleanup): New function.
786
c2226152
AS
7872008-10-30 Andreas Schwab <schwab@suse.de>
788
789 * infcmd.c (construct_inferior_arguments): Handle newlines
790 specially.
791
fe798b75
JB
7922008-10-30 Joel Brobecker <brobecker@adacore.com>
793
794 * breakpoint.h (enum bptype): Delete bp_catch_exec.
795 * breakpoint.c (insert_catchpoint): Remove handling for
796 bp_catch_exec breakpoint kinds.
797 (insert_bp_location, update_breakpoints_after_exec, remove_breakpoint)
798 (ep_is_catchpoint, print_it_typical, bpstat_check_location),
799 (bpstat_check_location, bpstat_what, print_one_breakpoint_location)
800 (print_one_breakpoint_location, user_settable_breakpoint)
801 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
802 (allocate_bp_location, mention, breakpoint_re_set_one)
803 (disable_command, enable_command): Likewise.
804 (create_exec_event_catchpoint): Delete.
805 (insert_catch_exec, remove_catch_exec, breakpoint_hit_catch_exec)
806 (print_it_catch_exec, print_one_catch_exec, print_mention_catch_exec):
807 New functions.
808 (catch_exec_breakpoint_ops): New static global.
809 (catch_exec_command_1): Use create_catchpoint instead of
810 create_exec_event_catchpoint to create the exec catchpoint.
811
f154cae1
TT
8122008-10-28 Tom Tromey <tromey@redhat.com>
813
814 * Makefile.in (SUBDIR_CLI_OBS): Don't mention cli-utils.o.
815 (SUBDIR_CLI_DEPS): Don't mention cli-utils.c.
816 (HFILES_NO_SRCDIR): Don't mention cli-utils.h.
817 (cli-utils.o): Remove.
818 * cli/cli-utils.c: Remove.
819 * cli/cli-utils.h: Remove.
820
79a45b7d
TT
8212008-10-28 Tom Tromey <tromey@redhat.com>
822
823 * varobj.c (value_get_print_value): Include valprint.h.
824 (value_get_print_value): Use get_formatted_print_options.
825 * value.h (struct value_print_options): Declare.
826 (value_print, val_print, common_val_print, val_print_string):
827 Update.
828 * value.c: Include valprint.h.
829 (show_values): Use get_user_print_options.
830 (show_convenience): Likewise.
831 * valprint.h (prettyprint_arrays, prettyprint_structs): Don't
832 declare.
833 (struct value_print_options): New type.
834 (vtblprint, unionprint, addressprint, objectprint, print_max,
835 inspect_it, repeat_count_threshold, output_format,
836 stop_print_at_null): Don't declare.
837 (user_print_options, get_user_print_options,
838 get_raw_print_options, get_formatted_print_options): Declare.
839 (print_array_indexes_p): Don't declare.
840 (maybe_print_array_index, val_print_array_elements): Update.
841 * valprint.c (print_max): Remove.
842 (user_print_options): New global.
843 (get_user_print_options, get_raw_print_options,
844 get_formatted_print_options): New functions.
845 (print_array_indexes, repeat_count_threshold, stop_print_at_null,
846 prettyprint_structs, prettyprint_arrays, unionprint,
847 addressprint): Remove.
848 (val_print): Remove format, deref_ref, pretty arguments; add
849 options. Update.
850 (common_val_print): Likewise.
851 (print_array_indexes_p): Remove.
852 (maybe_print_array_index): Remove format, pretty arguments; add
853 options. Update.
854 (val_print_array_elements): Remove format, deref_ref, pretty
855 arguments; add options. Update.
856 (val_print_string): Add options argument. Update.
857 (_initialize_valprint): Use user_print_options.
858 (output_format): Remove.
859 (set_output_radix_1): Use user_print_options.
860 * typeprint.c: Include valprint.h.
861 (objectprint): Don't declare.
862 (whatis_exp): Use get_user_print_options.
863 * tui/tui-regs.c: Include valprint.h.
864 (tui_register_format): Use get_formatted_print_options.
865 * tracepoint.c: Include valprint.h.
866 (addressprint): Don't declare.
867 (trace_mention): Use get_user_print_options.
868 (tracepoints_info): Likewise.
869 * stack.c (print_frame_args): Use get_raw_print_options.
870 (print_frame_info): Use get_user_print_options.
871 (print_frame): Likewise.
872 * sh64-tdep.c: Include valprint.h
873 (sh64_do_register): Use get_formatted_print_options.
874 * scm-valprint.c (scm_inferior_print): Remove format, deref_ref,
875 pretty arguments; add options.
876 (scm_scmlist_print): Likewise. Update.
877 (scm_scmval_print): Likewise.
878 (scm_val_print): Likewise.
879 (scm_value_print): Remove format, pretty arguments; add options.
880 Update.
881 * scm-lang.h (scm_value_print, scm_val_print, scm_scmval_print):
882 Update.
883 * scm-lang.c (scm_printstr): Add options argument.
884 * python/python-value.c: Include valprint.h.
885 (valpy_str): Use get_user_print_options.
886 * printcmd.c: Include valprint.h.
887 (addressprint): Don't declare.
888 (inspect_it): Remove.
889 (print_formatted): Remove format option; add options. Update.
890 (print_scalar_formatted): Likewise.
891 (print_address_demangle): Use get_user_print_options.
892 (do_examine): Use get_formatted_print_options.
893 (print_command_1): Likewise.
894 (output_command): Use get_formatted_print_options.
895 (do_one_display): Likewise.
896 (print_variable_value): Use get_user_print_options.
897 * p-valprint.c (pascal_val_print): Remove format, deref_ref,
898 pretty arguments; add options. Update.
899 (pascal_value_print): Remove format, pretty arguments; add
900 options. Update.
901 (vtblprint, objectprint): Don't declare.
902 (pascal_static_field_print): Remove.
903 (pascal_object_print_value_fields): Remove format, pretty
904 arguments; add options. Update.
905 (pascal_object_print_static_field): Likewise.
906 (_initialize_pascal_valprint): Use user_print_options. Update.
907 * p-lang.h (pascal_val_print, pascal_value_print,
908 pascal_printstr, pascal_object_print_value_fields): Update.
909 (vtblprint, static_field_print): Don't declare.
910 * p-lang.c (pascal_printstr): Add options argument. Update.
911 * objc-lang.c (objc_printstr): Add options argument. Update.
912 * mt-tdep.c: Include valprint.h.
913 (mt_registers_info): Use get_raw_print_options.
914 * mips-tdep.c: Include valprint.h.
915 (mips_print_fp_register): Use get_formatted_print_options.
916 (mips_print_register): Likewise.
917 * mi/mi-main.c: Include valprint.h.
918 (get_register): Use get_user_print_options.
919 (mi_cmd_data_evaluate_expression): Likewise.
920 (mi_cmd_data_read_memory): Use get_formatted_print_options.
921 * mi/mi-cmd-stack.c: Include valprint.h.
922 (list_args_or_locals): Use get_raw_print_options.
923 * m2-valprint.c (print_function_pointer_address): Add addressprint
924 argument.
925 (m2_print_long_set): Remove format, pretty arguments.
926 (m2_print_unbounded_array): Remove format, deref_ref, pretty
927 arguments; add options. Update.
928 (print_unpacked_pointer): Remove format argument; add options.
929 Now static. Update.
930 (print_variable_at_address): Remove format, deref_ref, pretty
931 arguments; add options. Update.
932 (m2_print_array_contents): Likewise.
933 (m2_val_print): Likewise.
934 * m2-lang.h (m2_val_print): Update.
935 * m2-lang.c (m2_printstr): Add options argument. Update.
936 * language.h (struct value_print_options): Declare.
937 (struct language_defn) <la_printstr>: Add options argument.
938 <la_val_print>: Remove format, deref_ref, pretty argument; add
939 options.
940 <la_value_print>: Remove format, pretty arguments; add options.
941 <la_print_array_index>: Likewise.
942 (LA_VAL_PRINT, LA_VALUE_PRINT, LA_PRINT_STRING,
943 LA_PRINT_ARRAY_INDEX): Update.
944 (default_print_array_index): Update.
945 * language.c (default_print_array_index): Remove format, pretty
946 arguments; add options. Update.
947 (unk_lang_printstr): Add options argument.
948 (unk_lang_val_print): Remove format, deref_ref, pretty arguments;
949 add options.
950 (unk_lang_value_print): Remove format, pretty arguments; add
951 options.
952 * jv-valprint.c (java_value_print): Remove format, pretty
953 arguments; add options. Update.
954 (java_print_value_fields): Likewise.
955 (java_val_print): Remove format, deref_ref, pretty arguments; add
956 options. Update.
957 * jv-lang.h (java_val_print, java_value_print): Declare.
958 * infcmd.c: Include valprint.h.
959 (print_return_value): Use get_raw_print_options.
960 (default_print_registers_info): Use get_user_print_options,
961 get_formatted_print_options.
962 (registers_info): Use get_formatted_print_options.
963 * gdbtypes.h (struct value_print_options): Declare.
964 (print_scalar_formatted): Update.
965 * f-valprint.c (f77_print_array_1): Remove format, deref_ref,
966 pretty arguments; add options. Update.
967 (f77_print_array): Likewise.
968 (f_val_print): Likewise.
969 * f-lang.h (f_val_print): Update.
970 * f-lang.c (f_printstr): Add options argument. Update.
971 (c_value_print): Update declaration.
972 * expprint.c: Include valprint.h.
973 (print_subexp_standard): Use get_raw_print_options,
974 get_user_print_options.
975 * eval.c: Include valprint.h.
976 (objectprint): Don't declare.
977 (evaluate_subexp_standard): Use get_user_print_options.
978 * cp-valprint.c (vtblprint, objectprint, static_field_print):
979 Remove.
980 (cp_print_value_fields): Remove format, pretty arguments; add
981 options. Update.
982 (cp_print_value): Likewise.
983 (cp_print_static_field): Likewise.
984 (_initialize_cp_valprint): Use user_print_options. Update.
985 * c-valprint.c (print_function_pointer_address): Add addressprint
986 argument.
987 (c_val_print): Remove format, deref_ref, pretty arguments; add
988 options. Update.
989 (c_value_print): Add options argument. Update.
990 * c-lang.h (c_val_print, c_value_print, c_printstr): Update.
991 (vtblprint, static_field_print): Don't declare.
992 (cp_print_value_fields): Update.
993 * c-lang.c (c_printstr): Add options argument. Update.
994 * breakpoint.c: Include valprint.h.
995 (addressprint): Don't declare.
996 (watchpoint_value_print): Use get_user_print_options.
997 (print_one_breakpoint_location): Likewise.
998 (breakpoint_1, print_it_catch_fork, print_it_catch_vfork, mention,
999 print_exception_catchpoint): Likewise.
1000 * auxv.c (fprint_target_auxv): Don't declare addressprint. Use
1001 get_user_print_options.
1002 * ada-valprint.c (struct ada_val_print_args): Remove format,
1003 deref_ref, and pretty; add options.
1004 (print_optional_low_bound): Add options argument.
1005 (val_print_packed_array_elements): Remove format and pretty
1006 arguments; add options. Update.
1007 (printstr): Add options argument. Update.
1008 (ada_printstr): Likewise.
1009 (ada_val_print): Remove format, deref_ref, pretty arguments; add
1010 options argument. Update.
1011 (ada_val_print_stub): Update.
1012 (ada_val_print_array): Remove format, deref_ref, pretty arguments;
1013 add options. Update.
1014 (ada_val_print_1): Likewise.
1015 (print_variant_part): Likewise.
1016 (ada_value_print): Remove format, pretty arguments; add options.
1017 Update.
1018 (print_record): Likewise.
1019 (print_field_values): Likewise.
1020 * ada-lang.h (ada_val_print, ada_value_print, ada_printstr):
1021 Update.
1022 * ada-lang.c (ada_print_array_index): Add options argument; remove
1023 format and pretty arguments.
1024 (print_one_exception): Use get_user_print_options.
1025
7c8a8b04
TT
10262008-10-28 Tom Tromey <tromey@redhat.com>
1027
1028 * cli/cli-script.c (do_fclose_cleanup): Remove.
1029 (script_from_file): Use make_cleanup_fclose.
1030 * xml-tdesc.c (do_cleanup_fclose): Remove.
1031 (fetch_xml_from_file): Use make_cleanup_fclose.
1032 * tracepoint.c (tracepoint_save_command): Use
1033 make_cleanup_fclose. Always free pathname.
1034 * source.c (print_source_lines_base): Use make_cleanup_fclose.
1035 * remote.c (fclose_cleanup): Remove.
1036 (remote_file_put): Use make_cleanup_fclose.
1037 (remote_file_get): Likewise.
1038 * linux-nat.c (linux_nat_find_memory_regions): Use
1039 make_cleanup_fclose.
1040 (linux_nat_info_proc_cmd): Likewise.
1041 (linux_proc_pending_signals): Likewise.
1042 * fbsd-nat.c (fbsd_find_memory_regions): Use make_cleanup_fclose.
1043 Free file name.
1044 * cli/cli-dump.c (do_fclose_cleanup): Remove.
1045 (make_cleanup_fclose): Remove.
1046 * defs.h (make_cleanup_fclose): Declare.
1047 * utils.c (do_fclose_cleanup): New function.
1048 (make_cleanup_fclose): Likewise.
1049
5a55c295
PA
10502008-10-27 Pedro Alves <pedro@codesourcery.com>
1051
1052 * inflow.c (kill_command): If the target claims there is still
1053 execution, don't clear the thread list.
1054
5256a53b
PA
10552008-10-27 Pedro Alves <pedro@codesourcery.com>
1056
1057 * cp-name-parser.y: Include defs.h instead of config.h.
1058 (parse_escape): Rename to ...
1059 (cp_parse_escape): ... this.
1060 (yylex): Update.
1061 (xfree) [TEST_CPNAMES]: New.
1062
e8ecdb5c
PA
10632008-10-27 Pedro Alves <pedro@codesourcery.com>
1064
1065 * CONTRIBUTE: Mention autoconf 2.59 and configure.ac instead of
1066 2.13 and configure.in.
1067
8a305172
PA
10682008-10-27 Pedro Alves <pedro@codesourcery.com>
1069
1070 * target.h (struct target_ops) <to_supports_multi_process>: New
1071 field.
1072 (target_supports_multi_process): New define.
1073 * target.c (update_current_target): Inherit and de_fault
1074 to_supports_multi_process.
1075 * infcmd.c (attach_command): Allow attaching to multiple processes
1076 if the target supports it.
1077 (detach_command): If the target claims there is still execution,
1078 don't clear the thread list.
1079 * remote.c (remote_supports_multi_process): New.
1080 (init_remote_ops): Register remote_supports_multi_process.
1081
676e87b3
PA
10822008-10-27 Pedro Alves <pedro@codesourcery.com>
1083
1084 * Makefile.in (.y.c, .l.c): sed free to xfree.
1085
f0323ca0
PA
10862008-10-27 Pedro Alves <pedro@codesourcery.com>
1087
1088 * Makefile.in (INSTALLED_LIBS, CLIBS): Remove reference to
1089 $(TM_CLIBS).
1090 (CDEPS): Remove reference to $(TM_CDEPS).
1091
3067f6e5
MS
10922008-10-26 Michael Snyder <msnyder@vmware.com>
1093
1094 * infrun.c (handle_inferior_event): Handle dynamic symbol
1095 resolution in reverse.
1096
6130d0b7
JB
10972008-10-25 Joel Brobecker <brobecker@adacore.com>
1098
1099 * infrun.c: Minor comment reformatting.
1100
bbe2ba60
PA
11012008-10-25 Pedro Alves <pedro@codesourcery.com>
1102
1103 * ada-exp.y (write_object_renaming): Use malloc instead of
1104 xmalloc.
1105 * p-exp.y (pop_current_type): Use free instead of xfree.
1106
2e979b94
PA
11072008-10-24 Pedro Alves <pedro@codesourcery.com>
1108
1109 * fork-child.c (startup_inferior): Only set threads not-executing
1110 after getting all the pending execs. On TARGET_WAITKIND_IGNORE,
1111 keep waiting, don't resume. On all other cases but
1112 TARGET_WAITKIND_SIGNALLED and TARGET_WAITKIND_EXITED, switch to
1113 the event ptid.
1114
74531fed
PA
11152008-10-24 Pedro Alves <pedro@codesourcery.com>
1116
1117 Remote non-stop mode support.
1118
1119 * remote.c (pending_stop_reply): New.
1120 (struct remote_state) <non_stop_aware, support_vCont_t>: New
1121 fields.
1122 (remote_async_inferior_event_token)
1123 (remote_async_get_pending_events_token): New.
1124 (notice_new_inferiors): New, abstracted out from record_currthread.
1125 (record_currthread): Call it.
1126 (remote_threads_info): Default threads to running in non-stop
1127 mode. In non-stop mode, only qfThreadInfo is supported.
1128 (remote_close): Discard all pending stop_replies. Close the event
1129 sources.
1130 (set_stop_requested_callback): New.
1131 (remote_start_remote): Implement non-stop mode startup. In
1132 all-stop, don't clear the thread list here.
1133 (remote_non_stop_feature): New.
1134 (remote_protocol_features): Add a "QNonStop" feature.
1135 (remote_open_1): Clear cached_wait_status and non_stop_aware.
1136 Clear the thread list here.
1137 (remote_detach_1): Discard pending stop replies of the process we
1138 detached from.
1139 (extended_remote_attach_1): Implement non-stop mode.
1140 (remote_vcont_probe): Recognize `vCont;t'.
1141 (remote_vcont_resume): Implement non-stop mode.
1142 (remote_resume): Don't set waiting_for_stop_reply in non-stop
1143 mode.
1144 (remote_stop_ns): New.
1145 (remote_stop): Rename to ...
1146 (remote_stop_as): ... this. If we have a cached wait status,
1147 don't bother interrupting the remote.
1148 (remote_stop): Reimplement as wrapper around remote_stop_as and
1149 remote_stop_ns.
1150 (interrupt_query): Don't query in async mode.
1151 (struct cached_reg, cahed_reg_t): New.
1152 (struct stop_reply): New.
1153 (stop_reply_queue): New.
1154 (stop_reply_xmalloc, stop_reply_xfree)
1155 (discard_pending_stop_replies, do_stop_reply_xfree)
1156 (queued_stop_reply, push_stop_reply, peek_stop_reply)
1157 (remote_parse_stop_reply, remote_get_pending_stop_replies)
1158 (process_stop_reply): New.
1159 (remote_wait_ns): New.
1160 (remote_wait_as): Use remote_parse_stop_reply. Invalidate the
1161 notion of current general thread is a process exit was reported.
1162 (remote_wait): Call remote_wait_ns in non-stop mode.
1163 (handle_notification): New.
1164 (putpkt_binary): Handle notifications. Don't care for
1165 waiting_for_stop_reply in non-stop mode.
1166 (getpkt_sane): Rename to ...
1167 (getpkt_or_notif_sane_1): ... this. Add `expecting_notif'
1168 argument. Handle it. Handle notifications.
1169 (getpkt_sane): Reimplement as wrapper around getpkt_or_notif_sane_1.
1170 (getpkt_or_notif_sane): New.
1171 (select_new_thread_callback): Check for exited state instead of
1172 comparing the ptid against minus_one_ptid.
1173 (extended_remote_create_inferior_1): Query the remote about the
1174 current thread.
1175 (remote_supports_non_stop): New.
1176 (init_remote_ops): Register it.
1177 (remote_async_inferior_event_handler): New.
1178 (remote_async_get_pending_events_handler): New.
1179
1180 * infcmd.c (proceed_thread_callback): Comment.
1181 (proceed_after_attach_callback, proceed_after_attach): New.
1182 (attach_command_post_wait): In background attach, resume all
1183 threads, but only if they are unsignalled, and not explicitly
1184 stopped. In foreground attach, in non-stop mode, make sure to
1185 stop all threads of the just attached to process.
1186 (attach_command): In non-stop mode: If doing a background attach,
1187 stop at least one thread. If a foreground attach, stop all
1188 threads.
1189
50d01748
PA
11902008-10-24 Pedro Alves <pedro@codesourcery.com>
1191
1192 * event-loop.h: Mention async_event_handlers.
1193 (async_event_handler): Forward declare.
1194 (async_event_handler_func): New typedef.
1195 (create_async_event_handler, delete_async_event_handler)
1196 (mark_async_event_handler): Declare.
1197 * event-loop.c (event_data): New.
1198 (event_handler_func): Take an event_data instead of an integer.
1199 (struct gdb_event): Replace the integer file descriptor by a
1200 generic event_data.
1201 (async_event_handler): New.
1202 (async_handler_ready): Delete.
1203 (async_event_handler_list): New.
1204 (create_event): New.
1205 (create_file_event): Use it.
1206 (process_event): Adjust.
1207 (gdb_do_one_event): Poll from the event sources in round-robin
1208 fashion across calls. Be sure to consult all sources before
1209 blocking.
1210 (handle_file_event): Take an event_data instead of an integer.
1211 Adjust.
1212 (gdb_wait_for_event): Add `block' argument. Handle it.
1213 (mark_async_signal_handler): Remove unneeded cast.
1214 (invoke_async_signal_handler): Rename to ...
1215 (invoke_async_signal_handlres): ... this. Return true if any was
1216 handled.
1217 (check_async_ready): Delete
1218 (create_async_event_handler): New.
1219 (mark_async_event_handler): New.
1220 (struct async_event_handler_data): New.
1221 (invoke_async_event_handler): New.
1222 (check_async_event_handlers): New.
1223 (delete_async_event_handler): New.
1224 (handle_timer_event): Adjust.
1225
6dd47d34
DE
12262008-10-24 Doug Evans <dje@google.com>
1227
1228 * dwarf2read.c (typename_concat): Don't segv if prefix or suffix
1229 is NULL. Simplify obs == NULL case.
1230
fff08868
HZ
12312008-10-24 Hui Zhu <teawater@gmail.com>
1232 Pedro Alves <pedro@codesourcery.com>
1233
1234 * infrun.c (can_use_displaced_stepping): Change type to
1235 const char pointer.
1236 (can_use_displaced_stepping_auto): New string.
1237 (can_use_displaced_stepping_on): New string.
1238 (can_use_displaced_stepping_off): New string.
1239 (can_use_displaced_stepping_enum): New array.
1240 (show_can_use_displaced_stepping): In auto mode, also show
1241 the current effect of the option.
1242 (use_displaced_stepping): Return non-zero if displaced
1243 stepping is auto, and can be used with GDBARCH, and in
1244 non-stop mode. Return non-zero if displaced stepping is on,
1245 and can be used with GDBARCH. Return zero otherwise.
1246 (_initialize_infrun): Make the "set displaced-stepping"
1247 command an enum command. Change its class to class_run.
1248 Place it in the top level set list. Extend help to describe
1249 the auto mode.
1250
252fbfc8
PA
12512008-10-23 Pedro Alves <pedro@codesourcery.com>
1252
1253 * defs.h: Mention ptid_is_pid.
1254 * inferior.h (ptid_is_pid): Declare.
1255 * gdbthread.h (struct thread_info) <stop_requested>: New field.
1256 (set_stop_requested): Declare.
1257 * infcmd.c (interrupt_target_1): Call set_stop_requested.
1258 * infrun.c (clear_proceed_status): Clear stop_requested.
1259 (infrun_thread_stop_requested_callback,
1260 infrun_thread_stop_requested): New.
1261 (handle_inferior_event): If a TARGET_SIGNAL_TRAP is reported on a
1262 thread that had an explicit stop request, pretend we got a
1263 TARGET_SIGNAL_0. Always stop if the thread had an explicit stop
1264 request.
1265 (print_stop_reason): In the SIGNAL_RECEIVED case, if we're not
1266 outputting to MI, and we got a TARGET_SIGNAL_0, print "# Stopped",
1267 instead of mentioning signal 0.
1268 (ptid_is_pid): New.
1269 * thread.c (set_stop_requested): New.
1270
1271 * linux-nat.c (queued_waitpid): Rename to ...
1272 (queued_waitpid_1): ... this. Add `peek' argument. Handle it.
1273 (queued_waitpid): New, as wrapper to queued_waitpid_1.
1274 (push_waitpid): Push the SIGTRAP to the local event queue, to the
1275 kernel's.
1276 (send_sigint_callback): Delete.
1277 (linux_nat_stop_lwp): New.
1278 (linux_nat_stop): Use it.
1279
3c0ed299
PP
12802008-10-23 Paul Pluzhnikov <ppluzhnikov@google.com>
1281
1282 * python/python-value (valpy_getitem): Fix heap corruption.
1283
103fd00d
AR
12842008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1285
1286 * nto-procfs.c (do_attach): Form proper ptid including pid and tid.
1287 (procfs_create_inferior): Fetch list of threads.
1288
3fdfcbf1
AR
12892008-10-23 Aleksandar Ristovski <aristovski@qnx.com>
1290
1291 * nto-procfs.c (procfs_files_info): Fix a typo.
1292 (procfs_create_inferior): Make attach_flag per-inferior.
1293
997339e8
PP
12942008-10-23 Tom Tromey <tromey@redhat.com>
1295
1296 * python/python-value.c (value_to_value_object): Initialize
1297 owned_by_gdb field.
1298 (valpy_new): Likewise.
1299
d6b67a5e
JK
13002008-10-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1301 Joel Brobecker <brobecker@adacore.com>
1302
1303 * ada-tasks.c (task_states, long_task_states): Use constant N_()
1304 initializer. Define the strings as const.
1305 (short_task_info, info_task): Translate the strings above.
1306
aadc346a
JB
13072008-10-22 Joel Brobecker <brobecker@adacore.com>
1308
1309 * NEWS: Add entry for new feature (Ada tasking support).
1310
13112008-10-22 Joel Brobecker <brobecker@adacore.com>
77f120bf
JB
1312
1313 * configure.ac: On alpha-osf, error out if enable_tui is set to
1314 "yes", and set enable_tui to "no" if previously set to "auto".
1315 Check for waddstr only if TUI support was requested. Move the
1316 part of the configure script that updates various Makefile
1317 variables up, together with the check for waddstr.
1318 * configure: Regenerate.
1319
4af88198
JB
13202008-10-22 Joel brobecker <brobecker@adacore.com>
1321
1322 * gdbtypes.c (copy_type): New function.
1323 * gdbtypes.h (copy_type): Add declaration.
1324 * ada-lang.c (ada_to_fixed_type_1): If there is a parallel XVZ
1325 variable, then use it.
1326
0ef643c8
JB
13272008-10-22 Joel Brobecker <brobecker@adacore.com>
1328
1329 * target.h (struct target_ops): Add new field to_get_ada_task_ptid.
1330 (target_get_ada_task_ptid): New macro.
1331 * target.c (default_get_ada_task_ptid): New function.
1332 (update_current_target): Inherit field default_get_ada_task_ptid.
1333 (update_current_target): Make default_get_ada_task_ptid the default
1334 value for field to_get_ada_task_ptid.
1335 * ada-lang.h (struct task_control_block): Delete. Never used.
1336 (struct task_ptid, task_ptid_t, struct task_entry, task_list):
1337 Likewise.
1338 (struct ada_task_info): New.
1339 (ada_task_is_alive, ada_find_printable_frame)
1340 (ada_task_list_iterator_ftype, iterate_over_live_ada_tasks): Add
1341 declarations.
1342 (ada_build_task_list): Update prototype.
1343 (init_task_list, ada_is_exception_breakpoint): Remove prototypes.
1344 * ada-lang.c (ada_find_printable_frame): Make non-static.
1345 * ada-tasks.c: New file.
1346 * Makefile.in (SFILES): Add ada-tasks.c.
1347 (COMMON_OBS): Add ada-tasks.o.
1348 * linux-thread-db.c (thread_db_find_thread_from_tid)
1349 (thread_db_get_ada_task_ptid): New functions.
1350 (init_thread_db_ops): Set thread_db_ops.to_get_ada_task_ptid.
1351
c209f847
TT
13522008-10-22 Tom Tromey <tromey@redhat.com>
1353
1354 PR gdb/2506:
1355 * c-exp.y (string_exp): New production.
1356 (exp): Use it.
1357
5bc60cfb
JK
13582008-10-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1359
1360 * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): Update TYPE_FIELD_STATIC
1361 removed before.
1362
7f99b190
JB
13632008-10-20 Joel Brobecker <brobecker@adacore.com>
1364
1365 * NEWS: Add entry mentioning thread-support on Tru64
1366
7a052092
JB
13672008-10-19 Joel Brobecker <brobecker@adacore.com>
1368
1369 * dec-thread.c: New file.
1370 * config/alpha/alpha-osf3.mh (NATDEPFILES): Add dec-thread.o.
1371 (NAT_CLIBS): Define.
1372
40e12b06
HZ
13732008-10-19 Hui Zhu <teawater@gmail.com>
1374
1375 * infrun.c (handle_inferior_event): Set "stop_pc" when
1376 TARGET_WAITKIND_NO_HISTORY.
1377
f9176c46
PA
13782008-10-19 Pedro Alves <pedro@codesourcery.com>
1379
1380 * python/python-value.c (value_object_methods)
1381 (value_object_as_number, value_object_as_mapping): Move to bottom
1382 of file.
1383 (valpy_dealloc, valpy_new, valpy_length, valpy_getitem)
1384 (valpy_setitem, valpy_str, valpy_add, valpy_subtract)
1385 (valpy_multiply, valpy_divide, valpy_remainder, valpy_power)
1386 (valpy_negative, valpy_positive, valpy_absolute, valpy_nonzero)
1387 (valpy_richcompare, valpy_dereference): Don't forward-declare.
1388 (valpy_length) [HAVE_LIBPYTHON2_4]: Change return type to `int'.
1389
4058b839
PA
13902008-10-18 Pedro Alves <pedro@codesourcery.com>
1391
1392 * infrun.c (adjust_pc_after_break): Do nothing if executing in
1393 reverse.
1394
f42429a6
PA
13952008-10-17 Pedro Alves <pedro@codesourcery.com>
1396
1397 * infcmd.c (GO_USAGE): Delete.
1398 (go_command): Adjust.
1399
b2175913
MS
14002008-10-17 Michael Snyder <msnyder@vmware.com>
1401 Target interface for reverse debugging.
1402 * target.h (enum target_waitkind):
1403 Add new wait event, TARGET_WAITKIND_NO_HISTORY.
1404 (struct target_ops): New method to_can_execute_reverse.
1405 (target_can_execute_reverse): New macro.
1406 * target.c (update_current_target): Inherit to_can_execute_reverse.
1407
1408 Remote interface for reverse debugging.
1409 * remote.c (remote_can_execute_reverse): New target method.
1410 (remote_resume): Check for reverse exec direction, and send
1411 appropriate command to target.
1412 (remote_wait_as): Check target response for NO_HISTORY status.
1413 Also check for empty reply (target doesn't understand "bs" or "bc).
1414 (remote_vcont_resume): Jump out if attempting reverse execution.
1415
1416 Event handling interface for reverse debugging.
1417 * infrun.c (execution_direction): New state variable.
1418 (enum inferior_stop_reason): Add NO_HISTORY reason.
1419 (handle_inferior_event): Handle TARGET_WAITKIND_NO_HISTORY.
1420 Handle stepping over a function call in reverse.
1421 Handle stepping thru a line range in reverse.
1422 Handle setting a step-resume breakpoint in reverse.
1423 Handle stepping into a function in reverse.
1424 Handle stepping between line ranges in reverse.
1425 (print_stop_reason): Print reason for NO_HISTORY.
1426 (step_into_function): Rename to handle_step_into_function.
1427 (handle_step_into_function_backward): New function.
1428 (set_exec_direction_func, show_exec_direction_func): New funcs.
1429 (proceed): No need to singlestep over a breakpoint
1430 when resuming in reverse.
1431
1432 * inferior.h (enum exec_direction_kind): New enum.
1433 (execution_direction): Export new execution state variable.
1434
1435 * breakpoint.c (make_breakpoint_silent): New function.
1436 * breakpoint.h (make_breakpoint_silent): Export.
1437 * infcmd.c (finish_command): Check for reverse exec direction.
1438 (finish_backward): New function, handle finish cmd in reverse.
1439
1440 User interface for reverse execution.
1441 * Makefile.in (reverse.c): New file.
1442 * reverse.c: New file. User interface for reverse execution.
1443
153ccabd
PA
14442008-10-17 Pedro Alves <pedro@codesourcery.com>
1445
1446 * remote.c (record_currthread): Add inferior before child threads.
1447 (remote_threads_info): Check for exited threads. Mention
1448 notification order.
1449
ce78b96d
JB
14502008-10-16 Joel Brobecker <brobecker@adacore.com>
1451
1452 * breakpoint.h (enum bptype): New enum bp_catchpoint.
1453 Delete bp_catch_fork and bp_catch_vfork.
1454 (struct breakpoint_ops): Add new methods "insert", "remove"
1455 and "breakpoint_hit".
1456 * breakpoint.c (create_fork_vfork_event_catchpoint)
1457 (create_fork_event_catchpoint, create_vfork_event_catchpoint): Remove.
1458 (insert_catchpoint): Remove handling of bp_catch_fork and
1459 bp_catch_vfork catchpoints, and handle them as bp_catchpoint
1460 catchpoints instead.
1461 (insert_bp_location, update_breakpoints_after_exec)
1462 (remove_breakpoint, bpstat_check_location, bpstat_what)
1463 (allocate_bp_location): Likewise.
1464 (print_it_typical, print_one_breakpoint_location, mention): Remove
1465 handling of bp_catch_fork and bp_catch_vfork breakpoints.
1466 (ep_is_catchpoint, user_settable_breakpoint)
1467 (breakpoint_address_is_meaningful, adjust_breakpoint_address)
1468 (breakpoint_re_set_one, disable_command, enable_command):
1469 Remove use of bp_catch_fork and bp_catch_vfork. Add handling of
1470 bp_catchpoint breakpoints.
1471 (insert_catch_fork, remove_catch_fork, breakpoint_hit_catch_fork)
1472 (print_it_catch_fork, print_one_catch_fork, print_mention_catch_fork):
1473 New functions.
1474 (catch_fork_breakpoint_ops): New static constant.
1475 (insert_catch_vfork, remove_catch_vfork, breakpoint_hit_catch_vfork)
1476 (print_it_catch_vfork, print_one_catch_vfork)
1477 (print_mention_catch_vfork): New functions.
1478 (catch_vfork_breakpoint_ops): New static constant.
1479 (create_catchpoint, create_fork_vfork_event_catchpoint): New functions.
1480 (catch_fork_command_1): Use create_fork_vfork_event_catchpoint
1481 to create the fork and vfork catchpoints.
1482 (gnu_v3_exception_catchpoint_ops): Set new breakpoint_ops fields.
1483 * ada-lang.c (catch_exception_breakpoint_ops): Set new breakpoint_ops
1484 fields.
1485 (catch_exception_unhandled_breakpoint_ops): Likewise.
1486 (catch_assert_breakpoint_ops): Likewise.
1487
3c9c4b83
PA
14882008-10-16 Pedro Alves <pedro@codesourcery.com>
1489
1490 * remote.c (set_general_process): New.
1491 (remote_check_symbols): Use it.
1492
5c952c9b
PA
14932008-10-16 Pedro Alves <pedro@codesourcery.com>
1494
1495 * remote.c (push_remote_target): Delete.
1496 * target.h (push_remote_target): Delete declaration.
1497
ce5ce7ed
PA
14982008-10-15 Pedro Alves <pedro@codesourcery.com>
1499
1500 * remote.c (remote_close): Unregister remote_desc from the event
1501 loop. Always restore the SIGINT handler. Discard all inferiors
1502 here.
1503 (remote_detach_1, remote_disconnect): Don't unregister the file
1504 descriptor from the event loop here.
1505 (interrupt_query, readchar, getpkt_sane): Pop the target instead
1506 of morning the current inferior.
1507 (remote_kill): Don't unregister the file descriptor from the event
1508 loop here.
1509 (remote_mourn_1): Don't discard inferiors here.
1510
1c5cfe86
PA
15112008-10-15 Pedro Alves <pedro@codesourcery.com>
1512
1513 * breakpoint.c (breakpoint_init_inferior): Clean up the moribund
1514 locations list.
1515 (moribund_breakpoint_here_p): Record the moribund
1516 location in the moribund_locations vector.
1517 * breakpoint.h (moribund_breakpoint_here_p): Declare.
1518 (displaced_step_fixup): Check if the breakpoint the thread was
1519 trying to step over has been removed since having been placed in
1520 the displaced stepping queue.
1521 (adjust_pc_after_break): In non-stop mode, check for a moribund
1522 breakpoint at the stop pc.
1523 (handle_inferior_event): Don't retire moribund breakpoints on
1524 TARGET_WAITKIND_IGNORE.
1525
15262008-10-15 Pedro Alves <pedro@codesourcery.com>
ad53cd71
PA
1527
1528 * infrun.c (displaced_step_prepare): Switch thread temporarily
1529 while we're here.
1530 (displaced_step_fixup): Make sure target_resume sees ptid as
1531 inferior_ptid. Add debug output.
1532
63c715c6
PA
15332008-10-14 Pedro Alves <pedro@codesourcery.com>
1534
1535 Remove dead code.
1536
1537 * breakpoint.c (show_breakpoint_hit_counts): Delete.
1538 (print_one_breakpoint_location): Adjust.
1539 (breakpoint_clear_ignore_counts): Delete.
1540 * breakpoint.h (breakpoint_clear_ignore_counts): Remove
1541 declaration.
1542 * target.c (generic_mourn_inferior): Don't clear ignore
1543 counts (never reached).
1544
c764a876
DE
15452008-10-10 Doug Evans <dje@google.com>
1546
1547 * dwarf2read.c (comp_unit_head): Use unsigned int consistently
1548 for dwarf section offsets and sizes.
1549 (dwarf2_cu): Ditto.
1550 (dwarf2_per_cu_data): Ditto.
1551 (create_all_comp_units): Change offset to unsigned int.
1552 (load_full_comp_unit,find_partial_die_in_comp_unit,find_partial_die,
1553 dwarf2_find_containing_comp_unit,dwarf2_find_comp_unit): Ditto.
1554
1555 * dwarf2read.c (read_initial_length): Delete cu_header arg.
1556 All callers updated.
1557 (read_checked_initial_length_and_offset): New function.
1558 (read_offset_1): New function.
1559 (read_offset): Call it.
1560 (dwarf_decode_line_header): Call read_checked_initial_length_and_offset
1561 instead of read_initial_length. Call read_offset_1 instead of
1562 read_offset.
1563
1564 * dwarf2read.c (dwarf2_get_ref_die_offset): Remove unused arg `cu'.
1565 All callers updated.
1566
1567 * dwarf2read.c (dwarf_attr_name): Unconditionally support all
1568 DW_AT_MIPS_* except DW_AT_MIPS_fde which collides with
1569 DW_AT_HP_block_index.
1570
5fe04517
PA
15712008-10-10 Pedro Alves <pedro@codesourcery.com>
1572
1573 * remote.c (remote_start_remote): Always tell the stub if we're in
1574 extended-remote.
1575
c8e38a49
PA
15762008-10-09 Pedro Alves <pedro@codesourcery.com>
1577
1578 * remote.c (remote_wait): Rename to...
1579 (remote_wait_as): ... this. Don't loop here. If the remote
1580 didn't stop, return TARGET_WAITKIND_IGNORE.
1581 (remote_wait): New, reimplemented on top of remote_wait_as.
1582
9ca12bbf
TS
15832008-10-09 Thomas Schwinge <tschwinge@gnu.org>
1584
d11d9deb
TS
1585 * Makefile.in (gnu-nat.o): Revert the 2008-09-10 change, as the problem
1586 is fixed upstream.
1587
20249808
TS
1588 * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
1589
9ca12bbf
TS
1590 * MAINTAINERS (Write After Approval): Add myself.
1591
0b62613e
PA
15922008-10-09 Pedro Alves <pedro@codesourcery.com>
1593
1594 Make it compile without warnings.
1595
1596 * procfs.c (create_procinfo): Initialize `parent'.
1597 (dead_procinfo): Pass a constant string as format to error.
1598 (procfs_address_to_host_pointer): Add cast to gdb_type *.
1599 (procfs_find_LDT_entry): Adjust format string to long int
1600 ptid.tid.
1601 (procfs_xfer_partial): Adjust prototype. Add gdb_byte* cast.
1602 (procfs_xfer_memory): Adjust prototype.
1603 (info_mappings_callback, info_proc_mappings): Adjust to not pass a
1604 variable as printf_filtered format.
1605 (procfs_make_note_section): Change type of auxv local to gdb_byte.
1606 * Makefile.in: Remove special rule.
1607
c8d104ad
PA
16082008-10-09 Pedro Alves <pedro@codesourcery.com>
1609 Daniel Jacobowitz <dan@codesourcery.com>
1610
1611 * remote.c (remote_open_1): Move acknowledging any pending ack,
1612 querying supported features, activating noack mode, finding the
1613 target description, enabling extended remote, and checking remote
1614 symbols from here ...
1615 (remote_start_remote): ... to here.
1616 (remote_open_1): Don't pop the target if it is already gone.
1617 * target.c (unpush_target): Check for the dummy target.
1618
efdb2a86
PA
16192008-10-09 Pedro Alves <pedro@codesourcery.com>
1620
1621 * ser-mingw.c: Include "command.h".
1622 (pipe_windows_open): Declare locals at the beginning of the scope.
1623
e24a49d8
PA
16242008-10-08 Pedro Alves <pedro@codesourcery.com>
1625
1626 * remote.c (struct remote_state) <waiting_for_stop_reply>: New
1627 field.
1628 (remote_open_1): Clear waiting_for_stop_reply.
1629 (remote_resume): Set waiting_for_stop_reply.
1630 (remote_wait): Clear or set waiting_for_stop_reply accordingly.
1631 (putpkt_binary): If we're in async mode and waiting for a stop
1632 reply, bail out with an error.
1633 (extended_remote_mourn_1): Clear waiting_for_stop_reply.
1634
3084dd77
PA
16352008-10-08 Pedro Alves <pedro@codesourcery.com>
1636
1637 * remote.c (remote_get_thread_info): If the remote doesn't support
1638 the query, bail out.
1639
d6a843b5
JK
16402008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1641
1642 Convert static_kind into loc_kind enum.
1643 * gdbtypes.h (enum field_loc_kind): New.
1644 (union field_location): New field dwarf_block.
1645 (struct field): Rename static_kind as loc_kind.
1646 (FIELD_STATIC_KIND): Rename to ...
1647 (FIELD_LOC_KIND): ... here.
1648 (TYPE_FIELD_STATIC_KIND): Rename to ...
1649 (TYPE_FIELD_LOC_KIND): ... here and use there now new FIELD_LOC_KIND.
1650 (TYPE_FIELD_STATIC_HAS_ADDR): Remove.
1651 (TYPE_FIELD_STATIC): Remove.
1652 (TYPE_FIELD_BITPOS): Reformat.
1653 (SET_FIELD_BITPOS): New.
1654 (FIELD_PHYSADDR): Rename to ...
1655 (FIELD_STATIC_PHYSADDR): ... here.
1656 (TYPE_FIELD_STATIC_PHYSADDR): Follow the FIELD_PHYSADDR rename.
1657 (SET_FIELD_PHYSADDR): Use new FIELD_LOC_KIND.
1658 (FIELD_PHYSNAME): Rename to ...
1659 (FIELD_STATIC_PHYSNAME): ... here.
1660 (TYPE_FIELD_STATIC_PHYSNAME): Follow the FIELD_PHYSNAME rename.
1661 (SET_FIELD_PHYSNAME): Use new FIELD_LOC_KIND.
1662 (FIELD_DWARF_BLOCK, TYPE_FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK): New.
1663 (field_is_static): New declaration.
1664 * gdbtypes.c (field_is_static): New function.
1665 (copy_type_recursive): Update throughout.
1666 * amd64-tdep.c, c-typeprint.c, coffread.c, cp-valprint.c, dwarf2read.c,
1667 eval.c, jv-typeprint.c, jv-valprint.c, mdebugread.c, p-typeprint.c,
1668 p-valprint.c, valops.c, value.c, varobj.c: Update throughout.
1669
c289427b
PA
16702008-10-07 Thomas Schwinge <tschwinge@gnu.org>
1671 Pedro Alves <pedro@codesourcery.com>
1672
1673 * gnu-nat.h: Rename `current_inferior' to `gnu_current_inf' to
1674 avoid a name collision.
1675 * gnu-nat.c: Likewise.
1676 * i386gnu-nat.c: Likewise.
1677
8c1c099f
JB
16782008-10-07 Joel Brobecker <brobecker@adacore.com>
1679
1680 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Add handling
1681 of arguments that are references.
1682
8a498d38
DE
16832008-10-06 Doug Evans <dje@google.com>
1684
d97bc12b
DE
1685 * dwarf2read.c (dwarf2_die_debug): New static global.
1686 (dump_die_shallow): Renamed from dump_die, New args f, indent.
1687 Print to specified file, indented by the specified amount.
1688 (dump_die_for_error): New fn. Point all existing callers of
1689 dump_die here.
1690 (dump_die_die_1,dump_die): New fns, replaces ...
1691 (dump_die_list): ... deleted.
1692 (read_die_and_children_1): Old contents of read_die_and_children
1693 moved here.
1694 (read_die_and_children): Rewrite.
1695 (read_die_and_siblings): Call read_die_and_children_1 instead of
1696 read_die_and_children.
1697 (_initialize_dwarf2_read): New option "debug dwarf2-die".
1698 * gdbinit.in (pdie): New macro.
1699
45452591
DE
1700 * dwarf2read.c (offset_in_cu_p): New function.
1701 (find_partial_die,follow_die_ref): Use it.
1702
8a498d38
DE
1703 * symmisc.c (maintenance_info_symtabs): Watch for ^c.
1704 (maintenance_info_psymtabs): Ditto.
1705
360551e4 17062008-10-05 Michael Snyder <msnyder@vmware.com>
8002d778
MS
1707
1708 * infrun.c (handle_inferior_event): Fix typo in comment.
1709
c1828f25
VP
17102008-10-04 Vladimir Prus <vladimir@codesourcery.com>
1711
1712 * mi/mi-interp.c (mi_on_resume): Flush raw_stdout.
1713
5ef73790
PP
17142008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1715
1716 PR gdb/2384:
1717 * gdbtypes.c (get_vptr_fieldno): baseclass and basetype may have
1718 different lifetimes.
1719
352efb28 17202008-10-03 Joel Brobecker <brobecker@adacore.com>
a7125ea9
JB
1721
1722 * solib-osf.c: Include "solib.h".
1723
d1a41061
PP
17242008-10-03 Paul Pluzhnikov <ppluzhnikov@google.com>
1725
1726 * utils.c, defs.h (gdb_buildargv): New fn. Wrap buildargv
1727 and check for out-of-memory condition.
1728 * exec.c (exec_file_command): Call it.
1729 * infrun.c (handle_command, xdb_handle_command): Likewise.
1730 * interps.c (interpreter_exec_cmd): Likewise.
1731 * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
1732 * procfs.c (info_proc_cmd): Likewise.
1733 * remote-mips.c (common_open): Likewise.
1734 * remote-sim.c (gdbsim_kill, gdbsim_create_inferior)
1735 (gdbsim_open): Likewise.
1736 * remote.c (extended_remote_run, remote_put_command)
1737 (remote_get_command, remote_delete_command): Likewise.
1738 * ser-mingw.c (pipe_windows_open): Likesise.
1739 * source.c (add_path, show_substitute_path_command)
1740 (unset_substitute_path_command, set_substitute_path_command):
1741 Likewise.
1742 * stack.c (backtrace_command): Likewise.
1743 * symfile.c (symbol_file_command, generic_load)
1744 (add_symbol_file_command): Likesise.
1745 * symmisc.c (maintenance_print_symbols, maintenance_print_psymbols)
1746 (maintenance_print_msymbols): Likewise.
1747
d78df370
JK
17482008-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1749
1750 Replace TYPE_ARRAY_{UPPER,LOWER}_BOUND_TYPE by a bit if {un,}defined.
1751 * c-typeprint.c (c_type_print_varspec_suffix), m2-typeprint.c
1752 (m2_array), p-typeprint.c (pascal_type_print_varspec_prefix),
1753 valops.c (value_cast), varobj.c (c_number_of_children): Replace
1754 TYPE_ARRAY_UPPER_BOUND_TYPE compared to BOUND_CANNOT_BE_DETERMINED by
1755 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1756 * parse.c (follow_types): Use TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1757 * f-valprint.c (f77_get_dynamic_upperbound): Replace with ...
1758 (f77_get_upperbound): ... this function handling now only
1759 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1760 (f77_get_dynamic_lowerbound): Replace with ...
1761 (f77_get_lowerbound): ... this function handling now only
1762 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED.
1763 (f77_get_dynamic_length_of_aggregate, f77_create_arrayprint_offset_tbl):
1764 Update their callers.
1765 * eval.c (evaluate_subexp_standard): Update their callers.
1766 * f-lang.h (f77_get_dynamic_upperbound, f77_get_upperbound)
1767 (f77_get_dynamic_lowerbound, f77_get_lowerbound): Update their
1768 prototypes.
1769 (BOUND_FETCH_OK, BOUND_FETCH_ERROR): Remove.
1770 * f-typeprint.c (f_type_print_varspec_suffix, f_type_print_base): Remove
1771 the lower_bound_was_default variable. Update the
1772 f77_get_dynamic_upperbound, f77_get_upperbound and
1773 TYPE_ARRAY_UPPER_BOUND_TYPE calls.
1774 * gdbtypes.c (print_bound_type): Remove the function.
1775 (recursive_dump_type): Remove its calls printing UPPER_BOUND_TYPE and
1776 LOWER_BOUND_TYPE.
1777 * gdbtypes.h (enum array_bound_type): Remove.
1778 (struct main_type): Remove the fields upper_bound_type and
1779 lower_bound_type. Comment the new overload of the field artificial.
1780 (TYPE_ARRAY_UPPER_BOUND_TYPE): Replace by ...
1781 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): ... this macro.
1782 (TYPE_ARRAY_LOWER_BOUND_TYPE): Replace by ...
1783 (TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): ... this macro.
1784
40debb5a
TT
17852008-10-02 Tom Tromey <tromey@redhat.com>
1786
1787 * Makefile.in (HFILES_NO_SRCDIR): Remove gdb-events.h, gstdint.h.
1788
db5f024e
DJ
17892008-10-02 Daniel Jacobowitz <dan@codesourcery.com>
1790
1791 * mips-linux-tdep.c (mips_linux_in_dynsym_resolve_code): Update
1792 comments.
1793 (mips_linux_skip_resolver): Also use glibc_skip_solib_resolver.
1794 (mips_linux_init_abi): Do not override skip_trampoline_code.
1795 * configure.tgt (mips*-*-linux*): Add glibc-tdep.o.
1796 * mips-tdep.c (mips32_scan_prologue): Stop scanning at branches.
1797 (mips_stub_frame_sniffer): Use the stub frame sniffer for PIC stubs.
1798 (mips_skip_mips16_trampoline_code): Rename from
1799 mips_skip_trampoline_code.
1800 (mips_skip_pic_trampoline_code, mips_skip_trampoline_code): New.
1801 * infrun.c (handle_inferior_event): Do not pass zero to
1802 in_solib_dynsym_resolve_code.
1803
9f9d052e
PM
18042008-10-02 Pierre Muller <muller@ics.u-strasbg.fr>
1805 Pedro Alves <pedro@codesourcery.com>
1806
1807 * win32-nat.c (do_initial_win32_stuff): Set inferior_ptid.
1808
1809
bd2e94ce
TT
18102008-10-01 Tom Tromey <tromey@redhat.com>
1811
1812 * symtab.c (search_symbols): Update.
1813 * symtab.h (domain_enum_tag) <METHODS_DOMAIN>: Remove.
1814
8b41ec65
TT
18152008-10-01 Tom Tromey <tromey@redhat.com>
1816
1817 * symfile.c (syms_from_objfile): Update.
1818 (reread_symbols): Update.
1819 * objfiles.h (OBJF_SYMS): Remove.
1820 (OBJF_REORDERED): Renumber.
1821 (OBJF_SHARED): Likewise.
1822 (OBJF_READNOW): Likewise.
1823 (OBJF_USERLOADED): Likewise.
1824
712f90be
TT
18252008-10-01 Tom Tromey <tromey@redhat.com>
1826
1827 * symtab.c (find_pc_sect_psymtab): Use MSYMBOL_TYPE.
1828 (find_pc_sect_symtab): Likewise.
1829 * symmisc.c (dump_msymbols): Use MSYMBOL_TYPE.
1830 * solib-som.c (som_solib_desire_dynamic_linker_symbols): Use
1831 MSYMBOL_TYPE, not SYMBOL_TYPE.
1832 * parse.c (write_exp_msymbol): Use MSYMBOL_TYPE.
1833 * objc-lang.c (find_methods): Use MSYMBOL_TYPE.
1834 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Use
1835 MSYMBOL_TYPE.
1836 * m2-exp.y (yylex): Use SYMBOL_CLASS.
1837
b887350f
TT
18382008-10-01 Tom Tromey <tromey@redhat.com>
1839
1840 * xcoffread.c (RECORD_MINIMAL_SYMBOL): Update.
1841 (scan_xcoff_symtab): Update.
1842 * mdebugread.c (record_minimal_symbol): Update.
1843 (parse_partial_symbols): Update.
1844 * elfread.c (record_minimal_symbol): Update.
1845 * dbxread.c (record_minimal_symbol): Update.
1846 * coffread.c (record_minimal_symbol): Update.
1847 * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Redefine.
1848 (sh64_elf_make_msymbol_special): Update.
1849 * mips-tdep.c (mips_elf_make_msymbol_special): Use
1850 MSYMBOL_TARGET_FLAG_1.
1851 (mips_elf_make_msymbol_special): Likewise.
1852 (msymbol_is_special): Likewise.
1853 * minsyms.c (prim_record_minimal_symbol_and_info): Update.
1854 (install_minimal_symbols): Likewise.
1855 (prim_record_minimal_symbol): Update.
1856 (prim_record_minimal_symbol_and_info): Remove 'info' argument.
1857 * m68hc11-tdep.c (MSYMBOL_SET_RTC): Redefine.
1858 (MSYMBOL_SET_RTI): Redefine.
1859 (MSYMBOL_IS_RTC): Redefine.
1860 (MSYMBOL_IS_RTI): Redefine.
1861 * arm-tdep.c (MSYMBOL_SET_SPECIAL): Redefine.
1862 (MSYMBOL_IS_SPECIAL): Redefine.
1863 * symtab.h (struct minimal_symbol) <info>: Remove.
1864 <target_flag_1, target_flag_2>: New fields.
1865 (MSYMBOL_INFO): Remove.
1866 (MSYMBOL_TARGET_FLAG_1): New macro.
1867 (MSYMBOL_TARGET_FLAG_2): Likewise.
1868 (prim_record_minimal_symbol_and_info): Update.
1869
d35e5795
JB
18702008-09-30 Joel Brobecker <brobecker@adacore.com>
1871
1872 * ada-lang.c (is_digits_suffix): Delete unused function.
1873
d37209fd
JB
18742008-09-30 Paul Hilfinger <hilfinger@adacore.com>
1875
1876 * ada-lang.c (ada_modulus): Correct to avoid sign problem with
1877 moduli >= 2**31.
1878
18792008-09-30 Paul Hilfinger <hilfinger@adacore.com>
b1f33ddd
JB
1880
1881 * ada-lang.c (ada_lookup_struct_elt_type): Handle case of a "naked"
1882 variant branch.
1883 (empty_record): Use INIT_CPLUS_SPECIFIC, since this field is not
1884 supposed to be null. Fixes debugger segfaults.
1885 (is_unchecked_variant): New function.
1886 (to_fixed_variant_branch_type): Modify to leave unchecked unions
1887 untouched.
1888 (ada_template_to_fixed_record_type_1): Fix comment.
1889
3d0b0fa3
JB
18902008-09-30 Joel Brobecker <brobecker@adacore.com>
1891
1892 * ada-lang.c (standard_exc): New static constant.
1893 (ada_exception_catchpoint_cond_string): Add special handling
1894 for the predefined exceptions.
1895
cdc7bb92
JB
18962008-09-30 Joel Brobecker <brobecker@adacore.com>
1897
1898 * ada-lang.c (ADA_RETAIN_DOTS): Delete this dead macro. Update
1899 the code accordingly.
1900
6b0d7253
JB
19012008-09-30 Joel Brobecker <brobecker@adacore.com>
1902
1903 * ada-lang.c (ada_evaluate_subexp) [UNOP_IND]: Remove strange
1904 treatment of expect_type. Return the correct type when dereferencing
1905 an integer.
1906
9a044a89
TT
19072008-09-30 Tom Tromey <tromey@redhat.com>
1908
1909 PR gdb/2484:
1910 * symtab.c (struct add_macro_name_data): New struct.
1911 (add_macro_name): New function.
1912 (default_make_symbol_completion_list): Complete macro names.
1913 * scm-lang.c (scm_language_defn): Update.
1914 * p-lang.c (pascal_language_defn): Update.
1915 * objc-lang.c (objc_language_defn): Update.
1916 * macrotab.h (macro_callback_fn): Add user_data argument.
1917 (macro_for_each): Likewise.
1918 (macro_for_each_in_scope): Declare.
1919 * macrotab.c: (struct macro_for_each_data): New struct.
1920 (foreach_macro): Use it.
1921 (macro_for_each): Likewise.
1922 (foreach_macro_in_scope): New function.
1923 (macro_for_each_in_scope): Likewise.
1924 * macrocmd.c (print_one_macro): Add argument.
1925 (macro_list_command): Pass NULL to macro_for_each.
1926 * m2-lang.c (m2_language_defn): Update.
1927 * language.h (struct language_defn) <la_macro_expansion>: New
1928 field.
1929 (macro_expansion): New enum.
1930 * language.c (unknown_language_defn): Update. Fix order of
1931 initializers.
1932 (auto_language_defn): Likewise.
1933 (local_language_defn): Update.
1934 * jv-lang.c (java_language_defn): Update.
1935 * f-lang.c (f_language_defn): Update.
1936 * c-lang.c (c_language_defn): Update.
1937 (cplus_language_defn): Likewise.
1938 (asm_language_defn): Likewise.
1939 (minimal_language_defn): Likewise.
1940 * ada-lang.c (ada_language_defn): Update.
1941
b084d499
JB
19422008-09-30 Joel Brobecker <brobecker@adacore.com>
1943
1944 * dwarf2read.c (dwarf2_get_subprogram_pc_bounds): New function.
1945 (get_scope_pc_bounds): Use it.
1946
2fae03e8
TT
19472008-09-27 Tom Tromey <tromey@redhat.com>
1948
1949 * NEWS: Update.
1950 * macrocmd.c (extract_identifier): Add is_parameter argument.
1951 (macro_define_command): Update.
1952 (macro_undef_command): Likewise.
1953 * macroexp.c (stringify): New function.
1954 (find_parameter): Likewise.
1955 (gather_arguments): Add nargs argument. Handle varargs.
1956 (substitute_args): Add is_varargs and va_arg_name arguments.
1957 Handle varargs, splicing, stringification. Use find_parameter.
1958 (expand): Handle varargs.
1959
5c6ce71d
TT
19602008-09-27 Tom Tromey <tromey@redhat.com>
1961
1962 * scm-lang.c (scm_language_defn): Update.
1963 * p-typeprint.c (pascal_print_typedef): New function.
1964 * p-lang.h: (pascal_print_typedef): Declare.
1965 * p-lang.c (pascal_language_defn): Update.
1966 * objc-lang.c (objc_language_defn): Update.
1967 * m2-typeprint.c (m2_print_typedef): New function.
1968 * m2-lang.h (m2_print_typedef): Declare.
1969 * m2-lang.c (m2_language_defn): Update.
1970 * language.h (_LANG_c, _LANG_m2, _LANG_fortran, _LANG_pascal):
1971 Remove.
1972 (struct language_defn) <la_print_typedef>: New field.
1973 (default_print_typedef): Declare.
1974 (LA_PRINT_TYPEDEF): New define.
1975 * language.c (unknown_language_defn): Update.
1976 (auto_language_defn): Update.
1977 (local_language_defn): Update.
1978 * jv-lang.c (java_language_defn): Update.
1979 * f-lang.c (f_language_defn): Update.
1980 * c-typeprint.c (c_print_typedef): New function.
1981 * c-lang.h (c_print_typedef): Declare.
1982 * c-lang.c (c_language_defn): Update.
1983 (cplus_language_defn): Update.
1984 (asm_language_defn): Update.
1985 (minimal_language_defn): Update.
1986 * ada-lang.c (ada_language_defn): Update.
1987 * typeprint.c (default_print_typedef): New function.
1988
09be204e
TT
19892008-09-27 Tom Tromey <tromey@redhat.com>
1990
1991 * jv-exp.y (insert_exp): Define using ISO syntax.
1992 (copy_exp): Likewise.
1993 (push_expression_name): Likewise.
1994 (push_fieldnames): Likewise.
1995 (java_type_from_name): Likewise.
1996 (yyerror): Likewise.
1997 (yylex): Likewise.
1998 (parse_number): Likewise.
1999
3cd9d164
JB
20002008-09-26 Joel Brobecker <brobecker@adacore.com>
2001
2002 * MAINTAINERS (GLOBAL MAINTAINERS): Add Pedro Alves.
2003
e3168615
JB
20042008-09-25 Stephan Springl <springl-gdb@bfw-online.de> (tiny change)
2005
2006 * stack.c (print_frame_args): Fix typos in comments.
2007
8b8655b3
TJB
20082008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
2009
2010 * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
2011
6fbd21a1
VP
20122008-09-24 Vladimir Prus <vladimir@codesourcery.com>
2013
2014 * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
2015
45ef8ce0
AS
20162008-09-24 Andreas Schwab <schwab@suse.de>
2017
2018 * frame.c (get_frame_register_bytes): Take pseudo registers into
68e007ca 2019 account. Avoid excessive function calls.
45ef8ce0 2020
9cbfa09e
DE
20212008-09-23 Doug Evans <dje@google.com>
2022
07128da0
DE
2023 * dcache.c (state_chars): New static global.
2024 (ENTRY_INVALID,ENTRY_VALID): Renamed from ENTRY_BAD,ENTRY_OK.
2025 All uses updated.
2026 (dcache_info): Print cache state as mnemonically useful letters instead
2027 of magic numbers.
2028
9cbfa09e
DE
2029 * dwarf2read.c (comp_unit_head): Reorganize for better packing.
2030
d4c0a7a0
TT
20312008-09-22 Tom Tromey <tromey@redhat.com>
2032
2033 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't use
2034 printf_filtered.
2035
6ca15a4b
PA
20362008-09-22 Pedro Alves <pedro@codesourcery.com>
2037
2038 * infrun.c (follow_exec): Don't do a generic mourn. Instead
2039 inline the required bits.
2040 * breakpoint.h (enum inf_context): Add inf_execd.
2041
795e548f
PA
20422008-09-22 Pedro Alves <pedro@codesourcery.com>
2043
2044 * infrun.c (handle_inferior_event): In the follow exec case,
2045 context-switch before doing anything else.
2046
54a012c9
PA
20472008-09-22 Pedro Alves <pedro@codesourcery.com>
2048
2049 * top.c (any_thread_of, kill_or_detach): New functions.
2050 (quit_target): Iterate over all inferiors, killing or detaching
2051 accordingly.
2052
181e7f93
PA
20532008-09-22 Pedro Alves <pedro@codesourcery.com>
2054
2055 Remove the attach_flag global, and make it per-inferior.
2056
2057 * inferior.h (attach_flag): Delete.
2058 (inferior_process): Declare.
2059 * solib.c (update_solib_list): Adjust.
2060 * gnu-nat.c (gnu_create_inferior, gnu_attach): Adjust.
2061 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2062 (inf_ptrace_files_info): Get it from the current inferior.
2063 * inf-ttrace.c (inf_ttrace_attach): Adjust.
2064 (inf_ttrace_files_info): Get it from the current
2065 inferior.
2066 * inflow.c (terminal_inferior, terminal_ours_1, set_sigint_trap)
2067 (clear_sigint_trap): Get it from the current process.
2068 * remote.c (extended_remote_attach_1)
2069 (extended_remote_create_inferior_1): Adjust.
2070 * top.c (quit_confirm, quit_target): Get it from the current inferior.
2071 * procfs.c (do_detach): Adjust.
2072 (procfs_wait): Get it from the event inferior.
2073 (procfs_files_info): Get it from the current inferior.
2074 * nto-procfs.c (procfs_files_info): Likewise.
2075 (procfs_attach): Adjust. Set the attach_flag here.
2076 (do_attach): Don't set it here.
2077 (procfs_detach): Don't clear it.
2078 (procfs_mourn_inferior): Don't clear it.
2079 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2080 * target.c (attach_flag): Delete.
2081 (generic_mourn_inferior): Don't clear it.
2082 * win32-nat.c (get_win32_debug_event): Get it from the event
2083 process.
2084 (do_initial_win32_stuff): Add attaching argument. Set attach_flag
2085 in the inferior accordingly.
2086 (win32_attach): Don't set the attach_flag here. Pass 1 to
2087 do_intial_win32_stuff.
2088 (win32_files_info): Get it from the current inferior.
2089 (win32_create_inferior): Dont clear attach_flag here. Pass 0 to
2090 do_intial_win32_stuff.
2091
d6b48e9c
PA
20922008-09-22 Pedro Alves <pedro@codesourcery.com>
2093
2094 Make the stop_soon global be per-inferior instead.
2095
2096 * infcmd.c (attach_command_post_wait): Adjust.
2097 (attach_command): Likewise.
2098
2099 * inferior.h (stop_soon): Delete.
2100 (struct inferior): Add stop_soon member.
2101
2102 * infrun.c (stop_soon): Delete.
2103 (clear_proceed_status, start_remote)
2104 (fetch_inferior_event, handle_inferior_event): Adjust.
2105 (signal_stop_state): Don't check stop_soon here. Check in callers
2106 instead.
2107 (save_inferior_status, restore_inferior_status): Adjust.
2108
2109 * linux-nat.c (linux_nat_resume, linux_nat_wait): Always pass
2110 signals to common code if starting up the inferior.
2111
2112 * inferior.h (struct inferior_info): Added stop_soon member.
2113 * inferior.c (add_inferior) Clear stop_soon.
2114
2115 * mips-tdep.c (heuristic_proc_start): Adjust.
2116 * nto-procfs.c (procfs_create_inferior): Adjust.
2117 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
2118 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
2119 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
2120 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
2121
2122 * win32-nat.c (do_initial_win32_stuff): Adjust.
2123
2124 * alpha-tdep.c (alpha_heuristic_proc_start): Adjust.
2125
82f73884
PA
21262008-09-22 Pedro Alves <pedro@codesourcery.com>
2127
2128 Implement remote multi-process extensions.
2129
2130 * remote.c (struct remote_state): Add extended and
2131 multi_process_aware fields.
2132 (remote_multi_process_p): New.
2133 (PACKET_vKill): New.
2134 (record_currthread): Use thread_change_ptid. Notice new
2135 inferiors.
2136 (set_thread, remote_thread_alive): Use write_ptid.
2137 (write_ptid, read_ptid): New.
2138 (remote_current_thread, remote_threads_extra_info): Use them.
2139 (remote_threads_info): Likewise. Detect new inferiors.
2140 (remote_start_remote): Add inferior to inferior list.
2141 (remote_multi_process_feature): New.
2142 (remote_protocol_features): Add "multiprocess" feature.
2143 (remote_query_supported): Pass "multiprocess+" as supported
2144 features.
2145 (remote_open_1): Clear multi_process_aware. Set extended
2146 accordingly.
2147 (remote_detach_1): Detach current process. Use extended packet
2148 format for extended-remote multi-process. Detach process from the
2149 inferior list. Only mourn after printing output.
2150 (extended_remote_attach_1): Add process to the inferior list.
2151 (remote_vcont_resume): Use write_ptid to pass the thread ids.
2152 (remote_wait): Use read_ptid. Implement the extended
2153 multi-process extension format of the 'W' and 'X' reply packets.
2154 Remove exited inferiors from inferior list.
2155 (remote_xfer_memory): Set general thread.
2156 (remote_vkill): New.
2157 (extended_remote_kill): New.
2158 (remote_mourn_1): Discard all inferiors.
2159 (select_new_thread_callback): New.
2160 (extended_remote_mourn_1): If there are more processes to debug,
2161 switch to a thread in another process, and don't pop the target.
2162 (extended_remote_create_inferior_1): Add the new process to the
2163 inferior list.
2164 (remote_stopped_by_watchpoint): Indenting.
2165 (remote_xfer_partial): Set the general thread.
2166 (remote_pid_to_str): If the remote is multi-process aware, print
2167 the process id as well as the thread id.
2168 (remote_get_thread_local_address): Use write_ptid.
2169 (init_extended_remote_ops): Register extended_remote_kill.
2170 (_initialize_remote): Register new packets. Change
2171 magic_null_ptid's, not_sent_ptid's and any_thread_ptid's pid
2172 member to 42000.
2173
2174 * thread.c (thread_change_ptid): Also account for the inferior pid
2175 changing.
2176
2177 * inferior.h (discard_all_inferiors): Declare.
2178 * inferior.c (discard_all_inferiors): New.
2179
7f9f62ba
PA
21802008-09-22 Pedro Alves <pedro@codesourcery.com>
2181
2182 * gnu-nat.c (gnu_attach): Add process to inferiors table.
2183 (gnu_detach): Remove it.
2184 * go32-nat.c (go32_create_inferior): Add process to gdb's inferior
2185 table.
2186 * inf-ptrace.c (inf_ptrace_follow_fork): Delete and add inferiors
2187 to inferior table accordingly.
2188 (inf_ptrace_attach): Add new process to inferior table.
2189 (inf_ptrace_detach): Remove it.
2190 * inf-ttrace.c (inf_ttrace_follow_fork): Delete and add inferiors
2191 to inferior table accordingly.
2192 (inf_ttrace_attach): Add process to inferior table.
2193 (inf_ttrace_detach): Remove it.
2194 * linux-fork.c (init_fork_list): Delete any left over inferior.
2195 (linux_fork_mourn_inferior, detach_fork_command): Also delete
2196 processes from inferior list.
2197 * monitor.c (monitor_open): Add process to inferior list.
2198 (monitor_close): Remove it.
2199 * nto-procfs.c (procfs_attach): Add process to inferior list.
2200 Find threads after pushing the target.
2201 (procfs_detach): Remove process from inferior list.
2202 (procfs_create_inferior): Add process to inferior list.
2203 * procfs.c (procfs_detach): Remove process from inferior list.
2204 (do_attach): Add process to inferior list.
2205 * remote-sim.c (sim_create_inferior): Add process to inferior list.
2206 (gdbsim_close): Remove it.
2207 * target.c (generic_mourn_inferior): If inferior_ptid is not
2208 null_ptid, remove the corresponding inferior from inferior list.
2209 * win32-nat.c (do_initial_win32_stuff): Add process to inferior list.
2210 (win32_detach): Remove it.
2211 * linux-nat.c (linux_child_follow_fork): Delete and add inferiors
2212 to inferior list accordingly.
2213 * fork-child.c (fork_inferior): Add process to inferior list.
2214 * corelow.c (CORELOW_PID): Define.
2215 (core_close): Remove core from inferior list.
2216 (core_open): Add it.
2217
b77209e0
PA
22182008-09-22 Pedro Alves <pedro@codesourcery.com>
2219
2220 * inferior.h: Forward declare struct ui_out.
2221 Forward declare struct private_inferior.
2222 (struct inferior): New.
2223 (init_inferior_list, add_inferior, add_inferior_silent)
2224 (delete_inferior, delete_inferior_silent, detach_inferior)
2225 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
2226 (valid_inferior_id, find_inferior_pid): New functions.
2227 (inferior_callback_func): New typedef.
2228 (iterate_over_inferiors, print_inferior, have_inferiors)
2229 (current_inferior): New functions.
2230 * inferior.c: New file.
2231
2232 * Makefile.in (SFILES): Add inferior.c.
2233 (COMMON_OBS): Add inferior.o.
2234
d8c3d48d
JL
22352008-09-22 Jonathan Larmour <jifl@eCosCentric.com>
2236
2237 * arm-tdep.c (arm_skip_prologue): Call skip_prologue_using_sal
2238 instead of determining symbol and line info directly.
2239 * MAINTAINERS: Update my email address.
2240
d54be744
DJ
22412008-09-22 Daniel Jacobowitz <dan@codesourcery.com>
2242
2243 * symtab.c (skip_prologue_using_sal): Treat two consecutive lines
2244 at the same address as a prologue marker. Do not skip an entire
2245 function.
2246
26fae1d6
AS
22472008-09-22 Andrew Stubbs <ams@codesourcery.com>
2248
2249 * frame.c (get_frame_register_bytes): Comment improvments.
2250
1ad15515
PA
22512008-09-22 Pedro Alves <pedro@codesourcery.com>
2252
2253 * linux-nat.c (linux_nat_wait): Only use set_ignore_sigint in
2254 all-stop mode.
2255
14fc49fb
AS
22562008-09-19 Andrew Stubbs <ams@codesourcery.com>
2257
2258 * MAINTAINERS: Update my email address.
2259
3f27f2a4
AS
22602008-09-19 Andrew Stubbs <ams@codesourcery.com>
2261
2262 * frame.c (get_frame_register_bytes): Detect bad debug info.
2263
88ed393a
JK
22642008-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2265
2266 Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
2267 * infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
2268 initialization ...
2269 (fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
2270 ...
2271 (handle_inferior_event): ... here after the add_thread call together
2272 with the local adjust_pc_after_break and reinit_frame_cache calls.
2273
d832cb68
DD
22742008-09-16 David Daney <ddaney@avtrex.com>
2275
2276 * breakpoint.c (bpstat_stop_status): Clear breakpoint_at for
2277 all hardware bpstats.
2278
b1e40a6f
JB
22792008-09-16 Joel Brobecker <brobecker@adacore.com>
2280
2281 * gstdint.h: Delete.
2282
50a834af
MK
22832008-09-15 Mark Kettenis <kettenis@gnu.org>
2284
2285 * infcall.c (generic_push_dummy_code): Remove.
2286 (push_dummy_code): Unconditionally call gdbarch_push_dummy_code.
2287
9d25dd43
DE
22882008-09-15 Doug Evans <dje@google.com>
2289
2290 * dwarf2read.c (struct abbrev_info): Make members name, form 16 bits.
2291 (struct attribute): Ditto.
2292
85c83e99
DA
22932008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2294
326e541f
DA
2295 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Record
2296 HPPA_IPSW_REGNUM and HPPA_SAR_REGNUM values.
2297
85c83e99
DA
2298 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Remove surrounding
2299 "#if 0" "#endif". Fix mapping of DWARF DBX registers to GDB registers.
2300 Correct arguments and improve comments.
2301 (hppa_linux_init_abi): Call set_gdbarch_dwarf2_reg_to_regnum. Delete
2302 disabled code.
2303 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Fix check for floating
2304 point DBX register, change error to warning, and improve comments.
2305
76815b17
DE
23062008-09-14 Doug Evans <dje@google.com>
2307
2308 * dwarf2read.c (struct die_info): Make members tag, num_attrs 16 bits.
2309
51e753cf
DA
23102008-09-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2311
2312 * hppa-linux-tdep.c (hppa_linux_supply_fpregset): Correct iteration.
2313
06e476f5
JB
23142008-09-13 Joel Brobecker <brobecker@adacore.com>
2315
2316 * defs.h (GCC_GENERATED_STDINT_H): Define.
2317
6c761d9c
TT
23182008-09-13 Tom Tromey <tromey@redhat.com>
2319
2320 * varobj.c (varobj_set_display_format): Use xfree.
2321 * tracepoint.c (stringify_collection_list): Use xfree.
2322 * remote-fileio.c (remote_fileio_reset): Use xfree.
2323 * mipsread.c (read_alphacoff_dynamic_symtab): Use xfree.
2324 * dfp.c (decimal_from_floating): Use xfree, xstrprintf. Don't use
2325 asprintf.
2326 * cp-support.c (mangled_name_to_comp): Use xfree.
2327
339c13b6
JB
23282008-09-13 Joel Brobecker <brobecker@adacore.com>
2329
2330 * ada-lang.c (remove_extra_symbols): Remove stub symbols if
2331 the associated complete symbol is also in the list.
2332 (ada_add_local_symbols, ada_add_non_local_symbols): New functions,
2333 extracted out from ada_lookup_symbol_list.
2334 (ada_lookup_symbol_list): Use them. Remove the search through
2335 the minimal symbols.
2336
bc30ff58
JB
23372008-09-13 Joel Brobecker <brobecker@adacore.com>
2338
2339 * dwarf2read.c (add_partial_subprogram): New procedure.
2340 (scan_partial_symbols): Use it.
2341 (load_partial_dies): Read in children of subprogram and lexical
2342 blocks for Ada compilation units.
2343
bb01da77
TT
23442008-09-13 Tom Tromey <tromey@redhat.com>
2345
2346 * symfile.c (build_id_verify): Free 'found'.
2347 (find_separate_debug_file): Use xfree, not free.
2348
d00adf39
DE
23492008-09-12 Doug Evans <dje@google.com>
2350
00630ca8
DE
2351 * corefile.c (write_memory): Remove unnecessary copying.
2352
5d6fa950
DE
2353 * sol-thread.c (_initialize_sol_thread): Add FIXME regarding
2354 order of _initialize_* fns.
2355
d00adf39
DE
2356 * dwarf2read.c (comp_unit_head): Rename first_die_ptr to
2357 first_die_offset. All uses updated.
2358 Delete unused members cu_head_ptr, next.
2359 Move members base_known, base_address to ...
2360 (dwarf2_cu) ... here. All uses updated.
2361
3d0bb823
PA
23622008-09-12 Pedro Alves <pedro@codesourcery.com>
2363
2364 * Makefile.in (generated_files): Add $(NAT_GENERATED_FILES).
2365 * config/i386/i386gnu.mh (NAT_GENERATED_FILES): New.
2366
3c35e65b
UW
23672008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2368
2369 * fork-child.c (startup_inferior): Use target_wait and target_resume
2370 directly instead of calling wait_for_inferior / resume.
2371
2372 * infcmd.c (kill_if_already_running): Do not call no_shared_libraries
2373 or init_wait_for_inferior.
2374 (run_command_1): Call init_wait_for_inferior.
2375
4cca3ac9
UW
23762008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2377
2378 * gdbtypes.h (builtin_type_void_data_ptr, builtin_type_void_func_ptr,
2379 builtin_type_CORE_ADDR, builtin_type_char, builtin_type_short,
2380 builtin_type_int, builtin_type_long, builtin_type_signed_char,
2381 builtin_type_unsigned_char, builtin_type_unsigned_short,
2382 builtin_type_unsigned_int, builtin_type_unsigned_long,
2383 builtin_type_float, builtin_type_double, builtin_type_long_double,
2384 builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2385 builtin_type_bool, builtin_type_long_long,
2386 builtin_type_unsigned_long_long): Remove macros.
2387
2388 (builtin_type_f_character, builtin_type_f_integer,
2389 builtin_type_f_integer_s2, builtin_type_f_logical,
2390 builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2391 builtin_type_f_real, builtin_type_f_real_s8, builtin_type_f_real_s16,
2392 builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2393 builtin_type_f_complex_s32): Likewise.
2394
2395 (builtin_type_m2_char, builtin_type_m2_int, builtin_type_m2_card,
2396 builtin_type_m2_real, builtin_type_m2_bool): Likewise.
2397
2398 (struct builtin_f_type, builtin_f_type): Move to f-lang.h.
2399 (struct builtin_m2_type, builtin_m2_type): Move to m2-lang.h.
2400
2401 * f-lang.h (struct builtin_f_type, builtin_f_type): Move here.
2402 * m2-lang.h (struct builtin_m2_type, builtin_m2_type): Move here.
2403
b6da22b0
UW
24042008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2405
2406 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use builtin types of
2407 target_gdbarch instead of builtin_type_void_data_ptr.
2408 (LM_DYNAMIC_FROM_LINK_MAP, LM_NEXT, LM_NAME,
2409 IGNORE_FIRST_LINK_MAP_ENTRY, scan_dyntag, elf_locate_base,
2410 solib_svr4_r_map, solib_svr4_r_brk, solib_svr4_r_ldsomap,
2411 open_symbol_file_object): Likewise.
2412 * nto-tdep.c (LM_ADDR): Likewise.
2413
ff7da468
UW
24142008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2415
2416 * bsd-uthread.c (bsd_uthread_read_memory_address): New function.
2417 (bsd_uthread_fetch_registers, bsd_uthread_store_registers,
2418 bsd_uthread_wait, bsd_uthread_find_new_threads): Use it.
2419
4e906f53
UW
24202008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2421
2422 * procfs.c (procfs_address_to_host_pointer): Use target_gdbarch
2423 and its associated types to perform pointer conversion.
2424 (procfs_can_use_hw_breakpoint): Likewise.
2425 (procfs_auxv_parse): Remove unused variable.
2426
ffe5a37e
UW
24272008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2428
2429 * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch)
2430 instead of builtin_type_void_data_ptr.
2431 * target.c (default_region_ok_for_hw_watchpoint): Likewise.
2432
b806fb9a
UW
24332008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2434
2435 * expprint.c (print_subexp_standard): Compare against builtin type
2436 associated with exp->gdbarch instead of builtin_type_char.
2437
2438 * f-valprint.c (f_val_print): Use extract_unsigned_integer to
2439 extract values of arbitrary logical type. Handle arbitrary
2440 complex types.
2441
2442 * printcmd.c (float_type_from_length): New function.
2443 (print_scalar_formatted, printf_command): Use it.
2444
3e3b026f
UW
24452008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2446
2447 * valops.c: Include "objfiles.h" and "symtab.h".
2448 (find_function_in_inferior): New argument OBJF_P. Use it to return
2449 objfile where function is defined. Use per-objfile arch types
2450 instead of builtin_type_ to define default return type.
2451
2452 * linux-fork.c (checkpoint_command): Update calls. Use per-objfile
2453 architecture to define inferior call argument types.
2454 * gcore.c (derive_heap_segment): Likewise.
2455 * objc-lang.c (value_nsstring): Likewise.
2456 * scm-lang.c (scm_lookup_name): Likewise.
2457 * scm-valprint.c (scm_inferior_print): Likewise.
2458 * valops.c (value_allocate_space_in_inferior): Likewise.
2459
2460 * eval.c (evaluate_subexp_standard): Update calls.
2461 * objc-lang.c (lookup_objc_class, print_object_command): Likewise.
2462
2463 * linux-fork.c: Include "objfiles.h".
2464 * scm-lang.c: Include "objfiles.h".
2465 * scm-valprint.c: Include "objfiles.h".
2466
f8dcfc0a
UW
24672008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2468
2469 * gdbarch.sh (name_of_malloc): Remove.
2470 * gdbarch.c, gdbarch.h: Re-generate.
2471 * valops.c (value_allocate_space_in_inferior): Do not call
2472 gdbarch_name_of_malloc.
2473
c56324e0
UW
24742008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2475
2476 * valarith.c (value_x_unop): Use builtin_type_int8 as type for
2477 UNOP_POSTINCREMENT/UNOP_POSTDECREMENT constant 0 argument.
2478 (value_bit_index): Use extract_unsigned_integer
2479 instead of unpack_long to read single byte.
2480
7788af6d
UW
24812008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2482
2483 * infcall.c (value_arg_coerce): Add GDBARCH parameter. Use its
2484 associates types instead of builtin_type_ macros.
2485 (find_function_addr): Leave output VALUE_TYPE NULL if unknown.
2486 (call_function_by_hand): Use per-architecture "int" type as
2487 fall-back if find_function_addr returns NULL VALUE_TYPE.
2488 Update call to value_arg_coerce.
2489
ad4820ab
UW
24902008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2491
2492 * cp-abi.h (cplus_method_ptr_size): Add TO_TYPE parameter.
2493 (cplus_make_method_ptr): Add TYPE parameter.
2494 * cp-abi.c (cplus_method_ptr_size): Add TO_TYPE parameter. Pass it
2495 on to current_cp_abi.method_ptr_size callback.
2496 (cplus_make_method_ptr): Add TYPE parameter. Pass it on to
2497 current_cp_abi.make_method_ptr callback.
2498
2499 * gdbtypes.c (lookup_methodptr_type): Pass target type
2500 argument to cplus_method_ptr_size.
2501 * valops.c (value_cast): Pass type argument to cplus_make_method_ptr.
2502 (value_struct_elt_for_reference): Likewise.
2503
2504 * gnu-v3-abi.c (get_class_arch): New function.
2505 (vtable_address_point_offset): Add GDBARCH parameter. Use it
2506 instead of current_gdbarch. Update all callers.
2507 (gnuv3_get_vtable): Likewise.
2508 (gnuv3_get_virtual_fn): Likewise.
2509 (gnuv3_decode_method_ptr): Likewise.
2510 (gnuv3_rtti_type): Call get_class_arch to determine architecture.
2511 Use it instead of current_gdbarch.
2512 (gnuv3_virtual_fn_field): Likewise.
2513 (gnuv3_baseclass_offset): Likewise.
2514 (gnuv3_print_method_ptr): Likewise.
2515 (gnuv3_method_ptr_to_value): Likewise.
2516 (gnuv3_method_ptr_size): Add TYPE parameter. Use it to determine
2517 class architecture. Use architecture types instead of builtin types.
2518 (gnuv3_make_method_ptr): Likewise.
2519
2520 * cp-valprint.c (cp_print_class_member): Expect pointer type
2521 instead of class type. Use its length when extracting value.
2522 * c-valprint.c (c_val_print): Update call to cp_print_class_member.
2523
5ed92fa8
UW
25242008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2525
2526 * stack.c (return_command): Use frame architecture to determine
2527 default integer return type.
2528
2529 * f-valprint.c (f77_get_dynamic_lowerbound): Use frame architecture
2530 to determine pointer types.
2531 (f77_get_dynamic_upperbound): Likewise.
2532
2533 * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Remove.
2534 (resolve_msgsend): Use architecture of current frame to determine
2535 pointer types. Inline OBJC_FETCH_POINTER_ARGUMENT.
2536 (resolve_msgsend_stret, resolve_msgsend_super,
2537 resolve_msgsend_super_stret): Likewise.
2538
0dfff4cb
UW
25392008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2540
2541 * alpha-tdep.c (alpha_register_type): Use builtin_type (gdbarch)
2542 instead of builtin_type_ macros.
2543 * amd64-tdep.c (amd64_register_type): Likewise.
2544 (amd64_get_longjmp_target): Likewise.
2545 * arm-tdep.c (arm_register_type): Likewise.
2546 * avr-tdep.c (avr_register_type): Likewise.
2547 * cris-tdep.c (cris_register_type, crisv32_register_type): Likewise.
2548 * frv-tdep.c (frv_register_type): Likewise.
2549 * h8300-tdep.c (h8300_register_type): Likewise.
2550 * hppa-tdep.c (hppa32_convert_from_func_ptr_addr,
2551 hppa_skip_trampoline_code): Likewise.
2552 * i386-tdep.c (i386_register_type): Likewise.
2553 (i386_unwind_pc, i386_sse_type): Likewise.
2554 * ia64-tdep.c (ia64_register_type): Likewise.
2555 * m32r-tdep.c (m32r_register_type): Likewise.
2556 * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2557 * m88k-tdep.c (m88k_register_type): Likewise.
2558 * mep-tdep.c (mep_register_type): Likewise.
2559 * mips-tdep.c (mips_pseudo_register_type): Likewise.
2560 * mn10300-tdep.c (mn10300_register_type): Likewise.
2561 * mt-tdep.c (mt_copro_register_type): Likewise.
2562 * rs6000-tdep.c (rs6000_builtin_type_vec64): Likewise.
2563 (rs6000_convert_register_p, rs6000_register_to_value,
2564 rs6000_value_to_register): Likewise.
2565 * s390-tdep.c (s390_register_type): Likewise.
2566 * sh64-tdep.c (sh64_register_type): Likewise.
2567 (sh64_build_float_register_type, sh64_do_fp_register): Likewise.
2568 * sh-tdep.c (sh_sh2a_register_type, sh_sh3e_register_type,
2569 sh_sh4_build_float_register_type, sh_sh4_register_type,
2570 sh_default_register_type): Likewise.
2571 * sparc64-tdep.c (sparc64_register_type): Likewise.
2572 * sparc-tdep.c (sparc32_register_type): Likewise.
2573 * spu-tdep.c (spu_builtin_type_vec128, spu_register_type): Likewise.
2574 * v850-tdep.c (v850_register_type): Likewise.
2575 * vax-tdep.c (vax_register_type): Likewise.
2576 * xtensa-tdep.c (xtensa_register_type, xtensa_unwind_pc,
2577 xtensa_push_dummy_call): Likewise.
2578
2579 * std-regs.c (value_of_builtin_frame_fp_reg,
2580 value_of_builtin_frame_pc_reg): Likewise.
2581 * target-descriptions.c (tdesc_register_type): Likewise.
2582
6d84d3d8
UW
25832008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2584
2585 * ada-lang.c (ada_coerce_to_simple_array_type): Use builtin_type_int32
2586 instead of builtin_type_int as default unspecified integral type.
2587 (ada_index_type, ada_array_bound_from_type, ada_variant_discrim_type,
2588 assign_component, to_fixed_range_type): Likewise.
2589 * ada-typeprint.c (print_range, print_range_bound,
2590 print_range_type_named): Likewise.
2591 * ada-valprint.c (print_optional_low_bound, ada_val_print_1): Likewise.
2592 * eval.c (evaluate_subexp_standard): Likewise.
2593 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2594 * gnu-v3-abi.c (gnuv3_get_virtual_fn, gnuv3_baseclass_offset,
2595 build_gdb_vtable_type): Likewise.
2596 * jv-lang.c (java_array_type): Likewise.
2597 * m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Likewise.
2598 * m2-valprint.c (m2_print_long_set): Likewise.
2599 * parse.c (follow_types): Likewise.
2600 * p-typeprint.c (pascal_type_print_base): Likewise.
2601 * valops.c (value_one, value_array, value_string,
2602 value_bitstring): Likewise.
2603 * value.c (allocate_repeat_value, value_from_string): Likewise.
2604 * varobj.c (c_describe_child): Likewise.
2605 * mt-tdep.c (mt_register_type): Likewise.
2606 * sh-tdep.c (sh_sh4_build_float_register_type): Likewise.
2607 * sh64-tdep.c (sh64_build_float_register_type): Likewise.
2608
180b9a0e
UW
26092008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2610
2611 * defs.h (struct gdbarch): Add forward declaration.
2612 (set_next_address): Add GDBARCH argument.
2613 * printcmd.c (set_next_address): Use it to find pointer type.
2614 * breakpoint.c (breakpoint_1): Update call.
2615 * source.c (line_info): Likewise.
2616 * findcmd.c (find_command): Use current_gdbarch to find pointer type.
2617
2618 * breakpoint.c (set_breakpoint_count): Use platform-neutral
2619 types for internal variable values.
2620 * infrun.c (handle_inferior_event): Likewise.
2621 * source.c (forward_search_command, reverse_search_command): Likewise.
2622 * tracepoint.c (set_tracepoint_count, set_traceframe_num,
2623 set_tracepoint_num, set_traceframe_context): Likewise.
2624
b769d911
UW
26252008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2626
2627 * gdbtypes.h (struct builtin_type): Remove builtin_true_char
2628 and builtin_true_unsigned_char.
2629 (builtin_type_true_char): Remove macro, add extern declaration.
2630 (builtin_type_true_unsigned_char): Add extern declaration.
2631 * gdbtypes.c (builtin_type_true_char): New global variable.
2632 (builtin_type_true_unsigned_char): Likewise.
2633 (_initialize_gdbtypes): Initialize them.
2634 (gdbtypes_post_init): Do not initialize builtin_true_char
2635 and builtin_true_unsigned_char members of struct builtin_type.
2636
2637 * printcmd.c (print_scalar_formatted): Do not use builtin_type;
2638 use builtin_type_true_unsigned_char instead.
2639
2640 * ada-valprint.c (ada_val_print_1): Use builtin_type_true_char
2641 instead of builtin_type_char for internal string.
2642
fde6c819
UW
26432008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2644
2645 * gdbtypes.h (builtin_type_void): Remove macro, add declaration.
2646 (builtin_type_f_void): Remove macro.
2647 * gdbtypes.c (builtin_type_void): New global variable.
2648 (_initialize_gdbtypes): Initialize it.
2649
2650 * gnu-v3-abi.c (build_gdb_vtable_type): Do not call
2651 lookup_pointer_type or lookup_function_type on builtin_type_void.
2652 * printcmd.c (set_next_address): Likewise.
2653 * objc-lang.c (value_nsstring): Likewise.
2654 * mt-tdep.c (mt_copro_register_type): Likewise.
2655 * xtensa-tdep.c (xtensa_register_type): Likewise.
2656
2657 * symfile.c (syms_from_objfile): Remove special handling
2658 of builtin_type_void and builtin_type_char.
2659
d4dbb9c7
UW
26602008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2661
2662 * eval.c (evaluate_subexp_standard): Use exp->gdbarch types instead
2663 of builtin_type_ macros when handling OP_OBJC_ operations.
2664 * objc-lang.c (print_object_command): Likewise.
2665
8ca1c40e
UW
26662008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2667
2668 * ada-valprint.c: Include "objfiles.h".
2669 (ada_val_print_1): Use the gdbarch associated with the objfile whether
2670 a System.Address type is defined to retrieve the proper pointer type
2671 to use to print it.
2672
3cb382c9
UW
26732008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2674
2675 * ada-lang.c (value_pos_atr): Add TYPE argument. Use it as
2676 result type instead of builtin_type_int.
2677 (value_subscript_packed): Use pos_atr instead of value_pos_atr.
2678 (ada_value_subscript): Update call to value_pos_atr.
2679 (ada_value_ptr_subscript): Likewise.
2680 (ada_evaluate_subexp): Likewise.
2681
a53b7a21
UW
26822008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2683
2684 * ada-lang.c (cast_to_fixed): Do not cast to builtin_type_double.
2685 (cast_from_fixed_to_double): Rename to ...
2686 (cast_from_fixed): ... this. Add TYPE parameter. Use it instead
2687 of builtin_type_double.
2688 (ada_value_cast): Use cast_from_fixed instead of casting result
2689 of cast_from_fixed_to_double.
2690 (ada_evaluate_subexp): Update calls to cast_from_fixed_to_double.
2691
22fe0fbb
UW
26922008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2693
2694 * valops.c (value_ind): No longer allow dereferencing an
2695 integer type.
2696 * eval.c (evaluate_subexp_standard): Handle deferencing an
2697 integer type here.
2698 * ada-lang.c (ada_evaluate_subexp): Likewise.
2699
d8631d21
UW
27002008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2701
2702 * ada-valprint.c (ada_val_print_1): When implicitly dereferencing
2703 a reference type, pass the reference type directly to unpack_pointer.
2704 * c-valprint.c (c_val_print): Likewise.
2705 * f-valprint.c (f_val_print): Likewise.
2706 * m2-valprint.c (print_variable_at_address, m2_val_print): Likewise.
2707 * p-valprint.c (pascal_val_print): Likewise.
2708
cb18ec49
UW
27092008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2710
2711 * eval.c (evaluate_subexp_standard): Use builtin_type_int8
2712 to construct the EVAL_SKIP dummy return value.
2713 * ada-lang.c (ada_evaluate_subexp): Likewise.
2714 * jv-lang.c (evaluate_subexp_java): Likewise.
2715 * m2-lang.c (evaluate_subexp_modula2): Likewise.
2716 * scm-lang.c (evaluate_exp): Likewise.
2717
0ab7ba45
UW
27182008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2719
2720 * value.h (coerce_enum, coerce_number): Remove prototypes.
2721 * value.c (coerce_enum, coerce_number): Remove.
2722 * valarith.c (value_x_binop): Do not call coerce_enum.
2723 (value_x_unop): Likewise.
2724 (value_logical_not): Call coerce_array instead of coerce_number.
2725
f7c79c41
UW
27262008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2727
2728 * ax-gdb.c: Include "language.h".
2729 (gen_frame_args_address): Add GDBARCH parameter; use it
2730 instead of current_gdbarch.
2731 (gen_frame_locals_address): Likewise.
2732 (gen_var_ref): Add GDBARCH parameter. Update calls to
2733 gen_frame_args_address and gen_frame_locals_address. Use
2734 pointer type from gdbarch.
2735 (gen_usual_unary): Add EXP parameter. Use integer type
2736 from exp->gdbarch.
2737 (gen_usual_arithmetic): Likewise.
2738 (gen_integral_promotions): Likewise.
2739 (gen_add, gen_sub): Remove.
2740 (gen_ptradd, gen_ptrsub, gen_ptrdiff): New functions.
2741 (gen_logical_not): Use passed-in boolean result type
2742 instead of builtin_type_int.
2743 (gen_complement): Do not call gen_usual_unary or
2744 gen_integral_promotions.
2745 (gen_struct_ref): Call require_rvalue instead of gen_usual_unary.
2746 (gen_repeat): Add EXP parameter. Update call to gen_expr.
2747 Use builtin_type_int32 as internal range type.
2748 (gen_sizeof): Add EXP and SIZE_TYPE parameters. Use SIZE_TYPE
2749 as result type. Update call to gen_expr.
2750 (gen_expr): Add EXP parameter. Update calls to gen_expr,
2751 gen_repeat, gen_var_ref, gen_usual_unary, gen_usual_arithmetic,
2752 and gen_integral_promotions. Call gen_ptradd, gen_ptrsub,
2753 gen_ptrdiff, or gen_binop instead of gen_add or gen_sub.
2754 Use exp->gdbarch instead of current_gdbarch.
2755 Call language_bool_type to determine result type of UNOP_LOGICAL_NOT.
2756
f44316fa
UW
27572008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2758
2759 * eval.c (evaluate_subexp_standard): Add calls to binop_promote
2760 and unop_promote before calling value_binop et. al.
2761 * ada-lang.c (ada_evaluate_subexp): Add calls to binop_promote
2762 and unop_promote before calling value_binop et. al.
2763
2764 * valarith.c (value_binop): Do not call binop_promote or unop_promote.
2765 (value_pos): Do not call unop_promote.
2766 (value_neg, value_complement): Likewise.
2767
4066e646
UW
27682008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2769
2770 * value.h (unop_promote, binop_promote): Add prototypes.
2771 * eval.c (unop_promote, binop_promote): New functions.
2772 * valarith.c (unop_result_type, binop_result_type): Remove.
2773 (value_binop): Call binop_promote or unop_promote.
2774 Inline remaining parts of binop_result_type. Remove special
2775 code to truncate integer values for unsigned operations.
2776 (value_pos): Call unop_promote. Inline remaining parts of
2777 unop_result_type.
2778 (value_neg, value_complement): Likewise.
2779
89eef114
UW
27802008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2781
2782 * value.h (value_add, value_sub): Remove.
2783 (value_ptradd, value_ptrsub, value_ptrdiff): Add prototypes.
2784 * valarith.c (value_add, value_sub): Remove.
2785 (value_ptradd, value_ptrsub, value_ptrdiff): New functions.
2786 (find_size_for_pointer_math): Add assertion. Update comment.
2787 (value_binop): Update comment.
2788
2789 * eval.c (ptrmath_type_p): New function.
2790 (evaluate_subexp_standard): Replace value_add and value_sub
2791 by value_ptradd, value_ptrsub, value_ptrdiff or value_binop.
2792 Use builtin_type_uint8 instead of builtin_type_char to hold
2793 the increment for BINOP_{PRE,POST}{IN,DE}CREMENT operations.
2794 * valarith.c (value_subscript): Replace value_add by
2795 value_ptradd. Replace value_sub by value_binop.
2796 * ada-lang.c (ada_value_ptr_subscript): Likewise.
2797 (ada_tag_name_2): Replace value_add by value_ptradd.
2798 (ada_evaluate_subexp): Replace value_add and value_sub by
2799 value_binop.
2800 * m2-lang.c (evaluate_subexp_modula2): Replace value_add
2801 by value_ptradd.
2802 * gnu-v2-abi.c (gnuv2_virtual_fn_field): Likewise.
2803 * gnu-v3-abi.c (gnuv3_method_ptr_to_value): Likewise.
2804
98b90dd8
UW
28052008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2806
2807 * eval.c (evaluate_subexp_for_sizeof): Use builtin_int type of
2808 the expression architecture instead of builtin_type_int as the
2809 sizeof return type.
2810
c806c55a
UW
28112008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2812
2813 * expression.h (enum exp_opcode): Document OP_COMPLEX to take
2814 a type parameter as expression element.
2815 * eval.c (evaluate_subexp_standard) [OP_COMPLEX]: Retrieve result
2816 type as expression element.
2817 * f-exp.y: Pass in type when buildin OP_COMPLEX expression.
2818 * parse.c (operator_length_standard): Update length of OP_COMPLEX.
2819
fbb06eb1
UW
28202008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2821
2822 * language.h (struct language_arch_info): New members
2823 bool_type_default and bool_type_symbol.
2824 (lang_bool_type): Remove prototype.
2825 (LA_BOOL_TYPE): Remove macro.
2826 (language_bool_type): Add prototype.
2827 * language.c (lang_bool_type): Remove.
2828 (language_bool_type): New function.
2829
2830 * value.h (value_in): Change return value to int.
2831 * value.c (value_in): Return int instead of struct value *.
2832
2833 * eval.c (evaluate_subexp_standard): Call language_bool_type instead
2834 of using LA_BOOL_TYPE. Update call to value_in.
2835 * ada-lang.c (ada_evaluate_subexp): Call language_bool_type instead
2836 of using LA_BOOL_TYPE or builtin_type_int for boolean values.
2837
2838 * language.c (unknown_language_arch_info): Set bool_type_default member
2839 of struct language_arch_info.
2840 * ada-lang.c (ada_language_arch_info): Set bool_type_symbol and
2841 bool_type_default members of struct language_arch_info.
2842 * c-lang.c (c_language_arch_info): Set bool_type_default member
2843 of struct language_arch_info.
2844 (cplus_language_arch_info): Set bool_type_symbol and bool_type_default
2845 members of struct language_arch_info.
2846 * f-lang.c (f_language_arch_info): Set bool_type_symbol and
2847 bool_type_default members of struct language_arch_info.
2848 * jv-lang.c (java_language_arch_info): Set bool_type_symbol and
2849 bool_type_default members of struct language_arch_info.
2850 * m2-lang.c (m2_language_arch_info): Set bool_type_symbol and
2851 bool_type_default members of struct language_arch_info.
2852 * p-lang.c (p_language_arch_info): Set bool_type_symbol and
2853 bool_type_default members of struct language_arch_info.
2854
de7b6b47
UW
28552008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2856
2857 * jv-lang.c (enum java_primitive_types): New type.
2858 (java_language_arch_info): New function.
2859 (java_language): Use it instead of c_language_arch_info.
2860
afc05acb
UW
28612008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2862
2863 * value.h (value_bitstring_subscript): New prototype.
2864 * valarith.h (value_bitstring_subscript): New function.
2865 (value_subscript): No longer handle TYPE_CODE_BITSTRING.
2866 * eval.c (evaluate_subexp_standard): Call value_bitstring_subscript
2867 instead of value_subscript to handle TYPE_CODE_BITSTRING.
2868
3e79cecf
UW
28692008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2870
2871 * expression.h (struct expression): New member GDBARCH.
2872 * parse.c (parse_exp_in_context): Initialize it.
2873 * parser-def.h (parse_gdbarch, parse_language): New macros.
2874
2875 * ada-exp.y (parse_type): New macro.
2876 Replace builtin_type_ macros by using parse_type.
2877 Replace current_language by parse_language.
2878 * ada-lex.l (processInt): Replace current_gdbarch by parse_gdbarch.
2879 Replace builtin_type_ macros.
2880
2881 * c-exp.y (parse_type): New macro.
2882 Replace builtin_type_ macros by using parse_type.
2883 (parse_number): Replace current_gdbarch by parse_gdbarch.
2884 (yylex): Replace current_language by parse_language.
2885
2886 * f-exp.y (parse_type, parse_f_type): New macros.
2887 Replace builtin_type_ macros by using parse_{f_,}type.
2888 (parse_number): Replace current_gdbarch by parse_gdbarch.
2889 (yylex): Replace current_language by parse_language.
2890
2891 * jv-exp.y (parse_type): New macro.
2892 (parse_number): Replace builtin_type_ macros by using parse_type.
2893
2894 * m2-exp.y (parse_type, parse_m2_type): New macros.
2895 Replace builtin_type_ macros by using parse_{m2_,}type.
2896
2897 * objc-exp.y (parse_type): New macro.
2898 Replace builtin_type_ macros by using parse_type.
2899 (parse_number): Replace current_gdbarch by parse_gdbarch.
2900 (yylex): Replace current_language by parse_language.
2901
2902 * p-exp.y (parse_type): New macro.
2903 Replace builtin_type_ macros by using parse_type.
2904 (parse_number): Replace current_gdbarch by parse_gdbarch.
2905 (yylex): Replace current_language by parse_language.
2906
c841afd5
UW
29072008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
2908
2909 * parser-defs.h (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE
2910 and DATA_SYMBOL_TYPE arguments.
2911 * parse.c (write_exp_msymbol): Remove TEXT_SYMBOL_TYPE and
2912 DATA_SYMBOL_TYPE arguments. Replace use of builtin_type_CORE_ADDR.
2913 (write_dollar_variable): Update call.
2914
2915 * ada-exp.y (write_var_or_type): Update call.
2916 * c-exp.y: Likewise.
2917 * f-exp.y: Likewise.
2918 * jv-exp.y: Likewise.
2919 * m2-exp.y: Likewise.
2920 * objc-exp.y: Likewise.
2921 * p-exp.y: Likewise.
2922
0c1f74cf
JB
29232008-09-10 Joel Brobecker <brobecker@adacore.com>
2924
2925 * ada-lang.c (ada_parent_type): Add handling of the case where
2926 the _parent field is a pointer and/or has a parallel XVS type.
2927 (ada_evaluate_subexp) [OP_VAR_VALUE]: When doing an
2928 EVAL_AVOID_SIDE_EFFECTS evaluation of a tagged type, return
2929 the type of the tag instead of doing forcing an EVAL_NORMAL
2930 expression evaluation.
2931
5823c3ef
JB
29322008-09-10 Paul N. Hilfinger <hilfinger@adacore.com>
2933 Joel Brobecker <brobecker@adacore.com>
2934
2935 * ada-lang.c (is_digits_suffix): New function.
2936 (is_dot_digits_suffix): Remove.
2937 (ada_lookup_symbol_list): Remove digits suffix from minimal symbols
2938 before looking up in symbol table, and do not use wild matches on them.
2939 (wild_match): Reimplement for speed and to allow matching of operator
2940 symbols.
2941 (is_valid_name_for_wild_match): Return zero for names that do not
2942 follow the GNAT encoding.
2943
2944 (is_name_suffix): Fix typo in comment.
2945 (to_record_with_fixed_variant_part): Ditto.
2946
e5fa8013
PA
29472008-09-10 Pedro Alves <pedro@codesourcery.com>
2948
2949 * Makefile.in (gnu-nat.o): New rule.
2950
6d2e05aa
JB
29512008-09-10 Joel Brobecker <brobecker@adacore.com>
2952
2953 * ada-lang.c (ada_evaluate_subexp) [OP_ATR_SIZE]: Use
2954 archecture-neutral builtin_type_int32 instead of builtin_type_int.
2955
2ac8a782
JB
29562008-09-10 Joel Brobecker <brobecker@adacore.com>
2957
2958 * ada-lang.c (ada_evaluate_subexp) [BINOP_ADD, BINOP_SUB]:
2959 Add special handling for pointer types.
2960
b861ac81
PA
29612008-09-10 Pedro Alves <pedro@codesourcery.com>
2962
2963 * inf-ttrace.c (inf_ttrace_follow_fork): Declare locals at the
2964 right scope level.
2965 (inf_ttrace_resume, inf_ttrace_wait): Typos.
2966
030b4912
UW
29672008-09-10 Ulrich Weigand <uweigand@de.ibm.com>
2968
2969 * ada-lang.c (ada_array_length): Use builtin_type_int32 instead
2970 of builtin_type_int.
2971 (ada_evaluate_subexp) [UNOP_IN_RANGE]: Use operand range type
2972 instead of builtin_type_int.
2973
d51fd4c8
PA
29742008-09-09 Pedro Alves <pedro@codesourcery.com>
2975
2976 * infrun.c (normal_stop): Run hook-stop last.
2977
11cb6f65
PA
29782008-09-09 Pedro Alves <pedro@codesourcery.com>
2979
2980 * gnu-nat.c (gnu_pid_to_exec_file): Delete.
2981 (init_gnu_ops): Don't register it.
2982
a9ab7422
PA
29832008-09-09 Pedro Alves <pedro@codesourcery.com>
2984
2985 * gnu-nat.c (gnu_attach): Push target before fetching the list of
2986 threads.
2987
694182d2
DJ
29882008-09-08 Daniel Jacobowitz <dan@codesourcery.com>
2989
2990 * valops.c (value_cast_structs): Return NULL for failure.
2991 (value_cast): Handle NULL from value_cast_structs.
2992 (value_fetch_lazy): Call check_typedef. Remove unused variable.
2993
dcf4fbde
PA
29942008-09-08 Pedro Alves <pedro@codesourcery.com>
2995
2996 * inferior.h (context_switch_to): Delete.
2997 * infrun.c (context_switch): Don't save and load infrun state.
2998 (context_switch_to): Delete.
2999
3000 * infcmd.c (proceed_thread_callback): Replace context_switch_to
3001 calls by switch_to_thread calls.
3002
3003 * gdbthread.h (save_infrun_state, load_infrun_state): Delete.
3004 * thread.c (main_thread_state, main_thread_executing): Delete.
3005 (inferior_thread): Delete references to them.
3006 (add_thread_silent): Fix case where we're adding a thread with the
3007 same ptid as an exited thread. Remove references to
3008 context-switching.
3009 (load_infrun_state, save_infrun_state): Delete.
3010 (thread_alive, is_thread_state, any_running, is_executing)
3011 (set_executing): Remove the special handling for targets that
3012 don't register any thread.
3013 (restore_current_thread, thread_apply_all_command)
3014 (do_captured_thread_select): Unconditionally call
3015 switch_to_thread.
3016
3017 * mi/mi-main.c (mi_cmd_execute): Check for exited threads.
3018 Call switch_to_thread instead of context_switch_to.
3019
95e54da7
PA
30202008-09-08 Pedro Alves <pedro@codesourcery.com>
3021
3022 Remove global continuations in favour of a per-thread
3023 continuations.
3024
3025 * gdbthread.h (struct thread_info): Add comments around
3026 continuations and intermediate_continuations.
3027 (save_infrun_state, load_infrun_state): Delete continuations and
3028 intermediate_continuations arguments.
fedae5ff 3029 * infrun.c (context_switch): Don't context-switch the continuations.
95e54da7
PA
3030 * thread.c (clear_thread_inferior_resources): Discard all
3031 continuations of the thread we're clearing.
3032 (save_infrun_state, load_infrun_state): Delete continuations and
3033 intermediate_continuations arguments, and the code referencing
3034 them.
3035 * utils.c: Include "gdbthread.h".
3036 (cmd_continuation, intermediate_continuation): Delete.
3037 (add_continuation): Add thread_info* argument. Install the
3038 continuation on it.
3039 (restore_thread_cleanup): New.
3040 (do_all_continuations_ptid, do_all_continuations_thread_callback):
3041 New.
3042 (do_all_continuations): Reimplement.
3043 (discard_all_continuations_thread_callback,
3044 discard_all_continuations_thread): New.
3045 (discard_all_continuations): Reimplement.
3046 (add_intermediate_continuation): Add thread_info* argument.
3047 Install the continuation on it.
3048 (do_all_intermediate_continuations_thread_callback)
3049 (do_all_intermediate_continuations_thread): New.
3050 (do_all_intermediate_continuations): Reimplement.
3051 (discard_all_intermediate_continuations_thread_callback): New.
3052 (discard_all_intermediate_continuations_thread): New.
3053 (discard_all_intermediate_continuations): Reimplement.
3054
3055 * breakpoint.c (until_break_command): Install the continuation on
3056 the current thread.
3057
3058 * defs.h (cmd_continuation, intermediate_continuation): Delete.
3059 (struct thread_info): Forward declare.
3060 (add_continuation, add_intermediate_continuation): Add
3061 thread_info* argument.
3062 (do_all_continuations_thread, discard_all_continuations_thread)
3063 (do_all_intermediate_continuations_thread)
3064 (discard_all_intermediate_continuations_thread): Declare.
3065 * inf-loop.c (inferior_event_handler): In non-stop only run
3066 continuations on the thread that stopped. In all-stop, run
3067 continuations on all threads.
3068 * infcmd.c (step_once, finish_command): Adjust.
3069
414c69f7
PA
30702008-09-08 Pedro Alves <pedro@codesourcery.com>
3071
3072 Remove the global stop_step in favour of a per-thread
3073 stop_step.
3074
3075 * inferior.h (stop_step): Delete.
3076
3077 * gdbthread.h (struct thread_info): Add comments to stop_step.
3078 (save_infrun_state, load_infrun_state): Remove stop_step argument.
3079 * thread.c (load_infrun_state, save_infrun_state): Remove
3080 stop_step argument, and references to it.
3081
3082 * infrun.c (clear_proceed_status): Clear stop_step.
3083 (fetch_inferior_event): Adjust.
3084 (context_switch): Don't context-switch stop_step.
3085 (handle_inferior_event): Adjust.
3086 (normal_stop): Adjust.
3087 (save_inferior_status, restore_inferior_status): Adjust.
3088
3089 * infcmd.c (stop_step): Delete.
3090 (step_1, step_1_continuation, step_once, until_next_command):
3091 Adjust.
3092
af679fd0
PA
30932008-09-08 Pedro Alves <pedro@codesourcery.com>
3094
3095 Remove the global step_multi in favour of a per-thread
3096 step_multi.
3097
3098 * inferior.h (step_multi): Delete.
3099 * gdbthread.h (struct thread_info): Add comments around
3100 step_multi.
3101 (save_infrun_state, load_infrun_state): Remove step_multi
3102 parameter.
3103 * thread.c (load_infrun_state, save_infrun_state): Remove
3104 step_multi argument, and references to it.
3105 * infcmd.c (step_multi): Delete.
3106 (step_1): Adjust.
3107 (step_1_continuation, until_next_command): Adjust.
3108 * infrun.c (fetch_inferior_event): Adjust.
3109 (context_switch): Don't context-switch step_multi.
3110 (print_stop_reason, normal_stop): Adjust.
3111
2020b7ab
PA
31122008-09-08 Pedro Alves <pedro@codesourcery.com>
3113
3114 Remove the global stop_signal in favour of a per-thread
3115 stop_signal.
3116
3117 * inferior.h (stop_signal): Delete.
3118 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3119 stop_signal argument.
3120 * thread.c (load_infrun_state, save_infrun_state): Remove
3121 stop_signal argument. Don't reference it.
3122
3123 * infcmd.c (stop_signal): Delete.
3124 (program_info): Adjust.
3125 * infrun.c (resume): Clear stop_signal.
3126 (proceed): Adjust. Pass the last stop_signal to the thread we're
3127 resuming.
3128 (context_switch): Don't context-switch stop_signal.
3129 (handle_inferior_event, keep_going): Adjust.
3130 (save_inferior_status, restore_inferior_status): Adjust.
3131
3132 * fbsd-nat.c: Include "gdbthread.h".
3133 (find_signalled_thread, find_stop_signal): New.
3134 (fbsd_make_corefile_notes): Use it.
3135 * fork-child.c (startup_inferior): Adjust.
3136
3137 * linux-nat.c (get_pending_status): Adjust.
3138 (linux_nat_do_thread_registers): Adjust.
3139 (find_signalled_thread, find_stop_signal): New.
3140 (linux_nat_do_thread_registers): Add stop_signal parameter.
3141 (struct linux_nat_corefile_thread_data): Add stop_signal member.
3142 (linux_nat_corefile_thread_callback): Pass stop_signal.
3143 (linux_nat_do_registers): Delete.
3144 (linux_nat_make_corefile_notes): Use find_stop_signal. Assume
3145 there's always a thread.
3146
3147 * procfs.c (find_signalled_thread, find_stop_signal): New.
3148 (find_stop_signal): New.
3149 (procfs_do_thread_registers): Add stop_signal parameter.
3150 (struct procfs_corefile_thread_data): Add stop_signal member.
3151 (procfs_corefile_thread_callback): Pass args->stop_signal.
3152 (procfs_make_note_section): Find the last stop_signal.
3153
3154 * solib-irix.c: Include gdbthread.h.
3155 (irix_solib_create_inferior_hook): Adjust.
3156 * solib-osf.c: Include gdbthread.h.
3157 (osf_solib_create_inferior_hook): Adjust.
3158 * solib-sunos.c: Include gdbthread.h.
3159 (sunos_solib_create_inferior_hook): Adjust.
3160 * solib-svr4.c: Include gdbthread.h.
3161 (svr4_solib_create_inferior_hook): Adjust.
3162
3163 * win32-nat.c (do_initial_win32_stuff): Adjust.
3164
32400beb
PA
31652008-09-08 Pedro Alves <pedro@codesourcery.com>
3166
3167 * gdbthread.h (struct thread_info): Add comments around
3168 proceed_to_finish.
3169 (save_infrun_state, load_infrun_state): Remove proceed_to_finish
3170 argument.
3171 * thread.c (load_infrun_state, save_infrun_state): Delete
3172 proceed_to_finish argument and references to it.
3173
3174 * infcall.c (call_function_by_hand): Adjust.
3175 * infcmd.c (finish_command): Adjust.
3176 * infrun.c (proceed_to_finish): Delete.
3177 (clear_proceed_status): Adjust.
3178 (context_switch): Don't context-switch proceed_to_finish.
3179 (normal_stop, save_inferior_status, restore_inferior_status):
3180 Adjust.
3181
347bddb7
PA
31822008-09-08 Pedro Alves <pedro@codesourcery.com>
3183
3184 * inferior.h (stop_bpstat): Delete.
3185
3186 * breakpoint.h (bpstat_do_actions): Remove bpstat* argument.
3187
3188 * breakpoint.c (bpstat_do_actions): Rename to ...
3189 (bpstat_do_actions_1): ... this. Make static. Change return type
3190 to int. Return true if a breakpoint proceeded.
3191 (bpstat_do_actions): New, as wrapper around bpstat_do_actions_1.
3192 (delete_breakpoint): Don't reference the global stop_bpstat; it's
3193 gone.
3194
3195 * gdbthread.h (struct thread_info): Add stop_bpstat.
3196 (save_infrun_state, load_infrun_state): Remove stop_bpstat
3197 argument.
3198 * thread.c (load_infrun_state, save_infrun_state): Remove
3199 stop_bpstat argument, and the code referencing it.
3200
3201 * infcall.c: Include "gdbthread.h".
3202 (call_function_by_hand): Adjust.
3203 * exceptions.c: Include "gdbthread.h".
3204 (throw_exception): Adjust.
3205 * infcmd.c (stop_bpstat): Delete.
3206 (continue_command): In all-stop, set the ignore count on the
3207 thread that reported the stop. In non-stop, set it on the current
3208 thread.
3209 (finish_command_continuation): Adjust.
3210 (program_info): Adjust.
3211 * infrun.c (clear_proceed_status): Adjust.
3212 (context_switch): Don't context-switch stop_bpstat.
3213 (handle_inferior_event): Adjust.
3214 (normal_stop): Adjust.
3215 (save_inferior_status, restore_inferior_status): Adjust.
3216
3217 * inf-loop.c (inferior_event_handler): Remove parameter to
3218 bpstat_do_actions call.
3219 * top.c (command_loop): Remove parameter to bpstat_do_actions
3220 call. Call it unconditionally.
3221 * event-top.c (command_handler): Ditto.
3222 * python/python.c (execute_gdb_command): Ditto.
3223
078130d0
PA
32242008-09-08 Pedro Alves <pedro@codesourcery.com>
3225
3226 * inferior.h (step_over_calls): Delete.
3227
3228 * gdbthread.h (save_infrun_state, load_infrun_state): Remove
3229 step_over_calls argument.
3230 * thread.c (save_infrun_state, load_infrun_state): Remove
3231 step_over_calls argument. Adjust.
3232
3233 * infcmd.c (step_over_calls): Delete.
3234 (step_1): Adjust.
3235 * infrun.c (clear_proceed_status): Adjust.
3236 (context_switch): Don't context-switch step_over_calls.
3237 (handle_inferior_event, save_inferior_status)
3238 (restore_inferior_status): Adjust.
3239
4e1c45ea
PA
32402008-09-08 Pedro Alves <pedro@codesourcery.com>
3241
3242 Remove context switching in favour of accessing thread_info fields
3243 directly.
3244
3245 * infrun.c (stepping_over_breakpoint, step_resume_breakpoint):
3246 Delete.
3247 (struct thread_stepping_state): Delete.
3248 (gtss, tss): Delete.
3249 (follow_inferior_reset_breakpoints, follow_exec)
3250 (resume, clear_proceed_status): Adjust.
3251 (prev_pc): Delete.
3252 (proceed, start_remote, init_wait_for_inferior): Adjust.
3253 (struct execution_control_state): Add event_thread member.
3254 (delete_step_resume_breakpoint_callback)
3255 (delete_step_thread_step_resume_breakpoint)
3256 (delete_step_thread_step_resume_breakpoint_cleanup)
3257 (delete_step_thread_step_resume_breakpoint): New.
3258 (wait_for_inferior, init_execution_control_state): Use
3259 delete_step_thread_step_resume_breakpoint_cleanup.
3260 (wait_for_inferior): Set the event_thread.
3261 (fetch_inferior_event): Ditto. Delete the step-resume breakpoint
3262 with delete_step_thread_step_resume_breakpoint.
3263 (init_thread_stepping_state): Change parameter type to
3264 thread_info. Adjust.
3265 (context_switch): Don't context switch prev_pc,
3266 stepping_over_breakpoint, step_resume_breakpoint,
3267 step_range_start, step_range_end, step_frame_id,
3268 tss->stepping_over_breakpoint,
3269 tss->stepping_through_solib_after_catch,
3270 tss->stepping_through_solib_catchpoints, tss->current_line, or
3271 tss->current_symtab.
3272 (adjust_pc_after_break, handle_inferior_event)
3273 (currently_stepping, step_into_function)
3274 (insert_step_resume_breakpoint_at_sal)
3275 (insert_longjmp_resume_breakpoint, keep_going): Adjust.
3276 (clear_stepping_state): New.
3277 (normal_stop): Adjust.
3278 (save_inferior_status, restore_inferior_status): Adjust.
3279
3280 * gdbthread.h (struct thread_info): Comments describing the
3281 members moved here. Add step_after_step_resume_breakpoint.
3282 (delete_step_resume_breakpoint): Add thread_info argument.
3283 (save_infrun_state, load_infrun_state): Remove prev_pc,
3284 trap_expected, step_resume_breakpoint, step_range_start,
3285 step_range_end, step_frame_id, another_trap,
3286 stepping_through_solib_after_catch,
3287 stepping_through_solib_catchpoints, current_line and
3288 current_symtab function arguments.
3289 (inferior_thread): Declare.
3290
3291 * thread.c (inferior_thread): New.
3292 (delete_step_resume_breakpoint): Add a thread_info parameter and
3293 rewrite.
3294 (load_infrun_state, save_infrun_state): Remove prev_pc,
3295 trap_expected, step_resume_breakpoint, step_range_start,
3296 step_range_end, step_frame_id, stepping_over_breakpoint,
3297 stepping_through_solib_after_catch,
3298 stepping_through_solib_catchpoints, current_line and
3299 current_symtab args. Remove code referencing them.
3300
3301 * infcmd.c (step_range_start, step_range_end, step_frame_id):
3302 Delete.
3303 (step_1, step_once, until_next_command): Adjust.
3304
3305 * inferior.h (step_range_start, step_range_end, step_frame_id):
3306 Delete.
3307
3308 * linux-nat.c (linux_child_follow_fork): If following the child,
3309 move the step state to it. Adjust.
3310 * inf-ptrace.c (inf_ptrace_follow_fork): Ditto.
3311 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3312
757f359d
PA
33132008-09-08 Pedro Alves <pedro@codesourcery.com>
3314
3315 * bsd-uthread.c (bsd_uthread_find_new_threads): Claim the main
3316 thread.
3317
0de3b513
PA
33182008-09-08 Pedro Alves <pedro@codesourcery.com>
3319
3320 * corelow.c (add_to_thread_list): If this is the first time we
3321 hear about thread info, update inferior_ptid.
3322 (core_open): Clear the thread list and set inferior_ptid before
3323 acknowledging a new inferior. Find threads before fetching
3324 register info. Give an upper target layer a chance to find and
3325 claim new threads. Print core generation and stop signal info
3326 after finding new threads.
3327 (get_core_register_section): Look at the lwp member of
3328 inferior_ptid for detecting if we have threads info, instead of
3329 the pid member.
3330 (core_pid_to_str): New.
3331 (init_core_ops): Register core_pid_to_str.
3332
4189d2f8
PA
33332008-09-08 Pedro Alves <pedro@codesourcery.com>
3334
3335 * spu-linux-nat.c (spu_child_post_startup_inferior)
3336 (spu_child_post_attach): Don't add the main thread here.
3337
617fd3b5
PA
33382008-09-08 Pedro Alves <pedro@codesourcery.com>
3339
3340 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
3341
3342 * gnu-nat.c (inf_validate_procs): If this is the first time we're
3343 seeing a thread id, extend the main thread's ptid. If we still
3344 have pending execs, don't be verbose about new threads.
3345 (gnu_wait, gnu_resume, gnu_attach, gnu_thread_alive)
3346 (gnu_pid_to_str, cur_thread, sig_thread_cmd): Adjust.
3347 * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers):
3348 Adjust.
3349
2689673f
PA
33502008-09-08 Pedro Alves <pedro@codesourcery.com>
3351
3352 * procfs.c (to_attach): Create a procinfo for the current lwp.
3353 Add it to gdb's thread list.
3354 (procfs_fetch_registers, procfs_store_registers): Assume there's
3355 always an lwp.
3356 (procfs_wait): Don't add the main thread here.
3357 (procfs_init_inferior): Create a procinfo for the main lwp here.
3358 Change main thread's ptid with thread_change_ptid.
3359 (procfs_notice_thread): Check for exited threads.
3360 (procfs_corefile_thread_callback): Remove check for the main
3361 process.
3362 (procfs_make_note_section): Assume there is always a thread.
3363
3364 * sol-thread.c (sol_thread_attach): Clear sol_thread_active before
3365 attaching. Change the main thread ptid with thread_change_ptid.
3366 (sol_thread_detach): Clear sol_thread_active.
3367 (sol_thread_wait): Check for exited threads.
3368 (sol_thread_create_inferior): Clear sol_thread_active before
3369 creating a new inferior. Change the main thread ptid with
3370 thread_change_ptid.
3371 (sol_thread_mourn_inferior): Clear sol_thread_active.
3372 (sol_find_new_threads_callback): Check for exited threads.
3373
62a93fa9
PA
33742008-09-08 Pedro Alves <pedro@codesourcery.com>
3375
3376 * inf-ttrace.c (inf_ttrace_wait): On TTEVT_LWP_CREATE and
3377 LWP_TERMINATE, resume the caller thread. On TTEVT_LWP_CREATE,
3378 TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE, don't stop the whole
3379 process, and return TARGET_WAITKIND_IGNORE.
3380
438ac09b
PA
33812008-09-08 Pedro Alves <pedro@codesourcery.com>
3382
3383 * inf-ttrace.c: Include <signal.h>
3384 (inf_ttrace_delete_dead_threads_callback): New.
3385 (inf_ttrace_resume_lwp): New.
3386 (inf_ttrace_resume_callback, inf_ttrace_resume): Rewrite. Don't
3387 delete dying threads until they are really dead.
3388 (inf_ttrace_wait): After stopping the whole process, delete any
3389 dying thread that is really dead by now.
3390 (inf_ttrace_thread_alive): Return 1.
3391 (inf_ttrace_extra_thread_info): New.
3392 (inf_ttrace_target): Register inf_ttrace_extra_thread_info.
3393
2935f27f
PA
33942008-09-08 Pedro Alves <pedro@codesourcery.com>
3395
3396 * inf-ttrace.c (inf_ttrace_follow_fork): Register the main thread
3397 of the child fork.
3398 (inf_ttrace_attach): Add the main thread.
3399 (inf_ttrace_resume_callback): Check for exited threads. Adjust
3400 for always a thread.
3401 (inf_ttrace_wait): Decorate the main thread's ptid with lwp info
3402 using thread_change_ptid, and set its private data. Don't add the
3403 main thread here.
3404 (inf_ttrace_pid_to_str): Adjust.
3405
fb5e7258
PA
34062008-09-08 Pedro Alves <pedro@codesourcery.com>
3407
3408 * bsd-uthread.c (bsd_uthread_wait): Decorate the main thread with
3409 thread_change_ptid. Check for exited threads.
3410 (bsd_uthread_find_new_threads): Check for exited threads.
3411
af990527
PA
34122008-09-08 Pedro Alves <pedro@codesourcery.com>
3413
3414 * inf-ptrace.c: Include "gdbthread.h".
3415 (inf_ptrace_attach): Add the main thread here.
3416 * linux-nat.c (linux_nat_attach): Don't add the main thread here.
3417 Decorate the main thread id with the lwp id.
3418
27c9d204
PA
34192008-09-08 Pedro Alves <pedro@codesourcery.com>
3420
3421 * linux-nat.c (linux_nat_wait): Update inferior_ptid's ptid with
3422 thread_change_ptid. Don't add or mark the main thread as running
3423 and executing here.
3424 * fork-child.c (fork_inferior): Add the main thread here.
3425
de9f48f0
JG
34262008-09-08 Jerome Guitton <guitton@adacore.com>
3427
3428 * rs6000-tdep.c (rs6000_fetch_instruction)
3429 (rs6000_skip_stack_check): New functions.
3430 (skip_prologue): Skip stack check sequence.
3431
52163a60
DD
34322008-09-08 David Daney <ddaney@avtrex.com>
3433
3434 * dummy-frame.h (frame.h): Include it.
3435 (struct frame_id): Remove declaration.
3436
87805e63
UW
34372008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3438
3439 * spu-tdep.c (spu_push_dummy_code): New function.
3440 (spu_gdbarch_init): Install it.
3441
0b1553bc
UW
34422008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3443
3444 * gdbarch.sh (gdbarch_dump): Use core_addr_to_string_nz
3445 instead of paddr_nz.
3446 * gdbarch.c: Regenerate.
3447
3448 * target.c (target_xfer_partial, debug_print_register): Use
3449 core_addr_to_string_nz instead of paddr_nz.
3450
2454a024
UW
34512008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3452
3453 * rs6000-tdep.c (rs6000_gdbarch_init): Setup displaced stepping
3454 *before* calling gdbarch_init_osabi.
3455 (rs6000_aix_init_osabi): Disable displaced stepping.
3456
b52323fa
UW
34572008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3458
3459 * target.c (update_current_target): Do not inherit to_open
3460 or to_close.
3461 (pop_target): Call target_close on target_stack instead
3462 of current_target.
3463 (pop_all_targets_above): Likewise.
3464
fead6908
UW
34652008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3466
3467 * gnu-v3-abi.c (gnuv3_decode_method_ptr): New function.
3468 (gnuv3_print_method_ptr): Use it.
3469 (gnuv3_method_ptr_to_value): Likewise.
3470
60441ab9
UW
34712008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3472
3473 * nto-tdep.h (struct nto_target_ops): Add gdbarch parameter to
3474 register_area callback function.
3475 * i386-nto-tdep.c (i386nto_register_area): Add gdbarch parameter.
3476 Use it instead of current_gdbarch.
3477 * nto-procfs.c (procfs_store_registers): Update call.
3478
bb486190
UW
34792008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3480
3481 * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Use
3482 regcache architecture instead of current_gdbarch.
3483
9dacea90
UW
34842008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3485
3486 * mep-tdep.c (struct mep_prologue): Add gdbarch member.
3487 (check_for_saved): Use it instead of current_gdbarch.
3488 (is_arg_spill): Add gdbarch paramter. Use it instead
3489 of current_gdbarch.
3490 (mep_analyze_prologue): Add gdbarch parameter. Pass it
3491 to is_arg_spill and check_for_saved.
3492 (mep_skip_prologue, mep_analyze_frame_prologue): Update calls.
3493
5db8bbe5
UW
34942008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3495
3496 * hppa-tdep.c (internalize_unwinds): Use objfile architecture
3497 instead of current_gdbarch.
3498
6ba38425
UW
34992008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3500
3501 * m68k-tdep.h (m68kbsd_fpreg_offset): Add gdbarch parameter.
3502 * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Add gdbarch paramter.
3503 Use it instead of current_gdbarch.
3504 (m68kbsd_supply_fpregset): Update call.
3505 * m68kbsd-nat.c (m68kbsd_supply_fpregset): Likewise.
3506 (m68kbsd_collect_fpregset): Likewise.
3507
35488783
UW
35082008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3509
3510 * cris-tdep.c (cris_version, cris_mode): Remove.
3511 (crisv32_single_step_through_delay): Use tdep->cris_mode.
3512 (cris_breakpoint_from_pc): Likewise.
3513 (cris_frame_unwind_cache): Use tdep->cris_version.
3514 (crisv32_scan_prologue): Likewise.
3515 (cris_spec_reg_applicable): Add gdbarch argument.
3516 Use tdep->cris_version.
3517 (cris_register_size, cris_special_register_name): Update calls.
3518 (cris_special_register_name): Add gdbarch argument.
3519 (cris_register_name, crisv32_register_name): Update calls.
3520
9dae60cc
UW
35212008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3522
3523 * m68hc11-tdep.c (gdb_print_insn_m68hc11): Use info->arch
3524 instead of current_gdbarch.
3525
3526 * sh64-tdep.c (gdb_print_insn_sh64): Remove.
3527 (sh64_gdbarch_init): Install print_insn_sh64 directly.
3528 * sh-tdep.c (gdb_print_insn_sh): Remove.
3529 (sh_gdbarch_init): Install print_insn_sh directly.
3530
3531 * mips-tdep.c (gdb_print_insn_mips): Do not check mips_abi
3532 from current_gdbarch.
3533 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): New functions.
3534 (mips_gdbarch_init): Install them instead of gdb_print_insn_mips
3535 depending on mips_abi.
3536
24568a2c
UW
35372008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3538
3539 * gdbarch.sh (addr_bits_remove): Change type to 'm'.
3540 (smash_text_address): Likewise.
3541 * gdbarch.c, gdbarch.h: Regenerate.
3542
3543 * arch-utils.c (core_addr_identity): Add gdbarch parameter.
3544 * arch-utils.h (core_addr_identity): Likewise.
3545 * arm-tdep.c (arm_addr_bits_remove): Likewise.
3546 (arm_smash_text_address): Likewise.
3547 * hppa-tdep.c (hppa_smash_text_address): Likewise.
3548 * m88k-tdep.c (m88k_addr_bits_remove): Likewise.
3549 * s390-tdep.c (s390_addr_bits_remove): Likewise.
3550
3551 * mips-tdep.c (mips_addr_bits_remove): Add gdbarch parameter.
3552 Use it instead of current_gdbarch.
3553
3554 * arm-tdep.c (arm_prologue_prev_register, arm_unwind_pc,
3555 arm_dwarf2_prev_register): Update calls.
3556 * m88k-tdep.c (m88k_unwind_pc): Update call.
3557
f7fd4728
UW
35582008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3559
3560 * dwarf2expr.h (dwarf2_read_address): Add gdbarch argument.
3561 * dwarf2expr.c (dwarf2_read_address): Add gdbarch argument.
3562 Call gdbarch_integer_to_address directly instead of converting
3563 to value and back. Update comment.
3564 (execute_stack_op): Update call site.
3565 * dwarf2loc.c (find_location_expression): Likewise.
3566 (locexpr_describe_location): Update
3567
3568 * dwarf2expr.h (struct dwarf_expr_context): Add gdbarch member.
3569 * dwarf2-frame.c (execute_stack_op): Initialize ctx->gdbarch.
3570 * dwarf2loc. (dwarf2_evaluate_loc_desc): Likewise.
3571 (dwarf2_loc_desc_needs_frame): Likewise.
3572
714835d5
UW
35732008-09-05 Ulrich Weigand <uweigand@de.ibm.com>
3574
3575 * breakpoint.h (struct bp_location): Change type of section
3576 member to "struct obj_section *".
3577 * tracepoint.h (struct tracepoint): Likewise.
3578 * symtab.h (struct general_symbol_info): Replace bfd_section
3579 member with obj_section.
3580 (struct symtab_and_line): Change type of section member to
3581 "struct obj_section *".
3582 (SYMBOL_BFD_SECTION): Remove macro, replace by ...
3583 (SYMBOL_OBJ_SECTION): ... this.
3584
3585 * minsym.c (prim_record_minimal_symbol_and_info): Record symbol
3586 section as obj_section instead of bfd_section.
3587
3588 * ada-lang.c (ada_decode_symbol): Use gsymbol->obj_section
3589 directly instead of looking of obj_section from bfd_section.
3590
3591 * objfiles.h (find_pc_sect_section): Remove.
3592 * objfiles.c (find_pc_sect_section): Remove.
3593 (find_pc_section): Inline find_pc_sect_section code.
3594
3595 * symfile.h (find_pc_overlay): Return struct obj_section *.
3596 (find_pc_mapped_section): Likewise.
3597 (section_is_overlay, section_is_mapped): Change type of section
3598 argument to struct obj_section *.
3599 (pc_in_mapped_range, pc_in_unmapped_range): Likewise.
3600 (overlay_mapped_address, overlay_unmapped_address): Likewise.
3601 (symbol_overlayed_address): Likewise.
3602 * symtab.h (symbol_overlayed_address): Likewise.
3603 * symfile.c (overlay_is_mapped): Remove.
3604 (section_is_mapped): Inline overlay_is_mapped code. Update.
3605 (overlay_invalidate_all): Update.
3606 (section_is_overlay): Change section argument to type
3607 "struct obj_section *". Use bfd_ methods.
3608 (pc_in_unmapped_range): Likewise. Handle relocated sections.
3609 (pc_in_mapped_range): Likewise. Handle relocated sections.
3610 (sections_overlap): Likewise.
3611 (overlay_unmapped_address): Likewise.
3612 (overlay_mapped_address): Likewise.
3613 (symbol_overlayed_address): Likewise.
3614 (find_pc_overlay): Return struct obj_section *.
3615 (find_pc_mapped_section): Likewise.
3616 (list_overlays_command): Update.
3617 (map_overlay_command, unmap_overlay_command): Update.
3618 (simple_overlay_update): Update.
3619
3620 * block.h (blockvector_for_pc_sect): Change section argument
3621 to type "struct obj_section *".
3622 (block_for_pc_sect): Likewise.
3623 * block.c (blockvector_for_pc_sect): Change section argument
3624 to type "struct obj_section *".
3625 (block_for_pc_sect): Likewise.
3626 * symtab.h (find_pc_sect_function, find_pc_sect_psymtab,
3627 find_pc_sect_symtab, find_pc_sect_psymbol, find_pc_sect_line,
3628 lookup_minimal_symbol_by_pc_section, find_function_start_pc): Likewise.
3629 (matching_bfd_sections): Rename to ...
3630 (matching_obj_sections): ... this. Update argument types.
3631 * blockframe.c (find_pc_sect_function): Likewise.
3632 * breakpoint.c (describe_other_breakpoints): Likewise.
3633 (breakpoint_has_pc, check_duplicates_for): Likewise.
3634 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3635 (lookup_minimal_symbol_by_pc_section): Likewise.
3636 * symtab.c (find_pc_sect_psymtab_closer): Likewise.
3637 (find_pc_sect_psymtab, find_pc_sect_psymbol, find_pc_sect_symtab,
3638 find_pc_sect_line, find_function_start_pc): Likewise.
3639 (matching_bfd_sections): Rename to ...
3640 (matching_obj_sections): ... this. Update argument types.
3641
3642 * blockframe.c (find_pc_partial_function): Update to section
3643 type changes. No longer call find_pc_sect_section.
3644 (cache_pc_function_section): Change to type "struct obj_section *".
3645 * breakpoint.c (resolve_sal_pc): Update to section type changes.
3646 * exec.c (xfer_memory): Likewise.
3647 * findvar.c (read_var_value): Likewise.
3648 * infcmd.c (jump_command): Likewise.
3649 * linespec.c (minsym_found): Likewise.
3650 * maint.c (maintenance_translate_address): Likewise.
3651 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Likewise.
3652 (lookup_solib_trampoline_symbol_by_pc): Likewise.
3653 * parse.c (write_exp_msymbol): Likewise.
3654 * printcmd.c (build_address_symbolic): Likewise.
3655 (address_info, sym_info): Likewise.
3656 * symmisc.c (dump_msymbols, print_symbol): Likewise.
3657 * symtab.c (fixup_section): Likewise.
3658 (fixup_symbol_section, fixup_psymbol_section): Likewise.
3659 (find_pc_line, find_function_start_sal): Likewise.
3660 * target.c (memory_xfer_partial): Likewise.
3661 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline): Likewise.
3662 * spu-tdep.c (spu_overlay_update): Likewise.
3663
623d3eb1
DE
36642008-09-04 Doug Evans <dje@google.com>
3665
3666 * defs.h (plongest,pulongest): Renamed from paddr_u,paddr_d.
3667 Change argument of pulongest from CORE_ADDR to ULONGEST.
3668 All callers updated.
3669 * utils.c (plongest): Renamed from paddr_d.
3670 (pulongest): Renamed from paddr_u, change arg type to ULONGEST.
3671 * remote-mips.c (send_srec): Use paddr_nz instead of paddr_u in
3672 `CORE_ADDR addr' arg of error message.
3673
8775bb90
MS
36742008-09-03 Angela Marie Thomas <angela@releasedominatrix.com>
3675
3676 * ser-tcp.c (ser_tcp_send_break): New function.
3677 (_initialize_ser_tcp): Use ser_tcp_send_break.
3678 * ser-tcp.h (ser_tcp_send_break): New prototype.
3679
9ff3afda
UW
36802008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3681
3682 * spu-tdep.c (spu_push_dummy_call): Update all stack pointer slots
3683 when allocating stack frame for inferior call.
3684
c4891da7
UW
36852008-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3686
3687 * spu-tdep.c (spu_frame_unwind_cache): Do not attempt to unwind
3688 SP or return address if we failed to find a valid frame.
3689
514f746b
AR
36902008-09-03 Aleksandar Ristovski <aristovski@qnx.com>
3691
3692 * breakpoint.c (breakpoint_init_inferior): Mark as not inserted only
3693 non-permanent breakpoints.
3694 (bpstat_stop_status): Change enable_state to bp_disabled only for
3695 non-permanent breakpoints.
3696 (bp_loc_is_permanent): New function.
3697 (create_breakpoint): Check if the location points to a permanent
3698 breakpoint and if it does, make breakpoint permanent.
3699 (update_breakpoint_locations): Make sure new locations of permanent
3700 breakpoints are properly initialized.
3701 * i386-tdep.c (i386_skip_permanent_breakpoint): New function.
3702 (i386_gdbarch_init): Set gdbarch_skip_permanent_breakpoint.
3703
a12654ce
PA
37042008-09-02 Pedro Alves <pedro@codesourcery.com>
3705
3706 * breakpoint.c (insert_breakpoints, update_global_location_list):
3707 Check breakpoints_always_inserted_mode instead of
3708 always_inserted_mode directly.
3709
8b7a6d61
AS
37102008-09-02 Andreas Schwab <schwab@suse.de>
3711
3712 * ia64-tdep.c (ia64_get_dyn_info_list): Use obj_section_addr.
3713
d68209e4
JK
37142008-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3715
3716 Stay compatible after the GCC PR fortran/29635 fix.
3717 * dwarf2read.c (process_die <DW_TAG_imported_module>)
3718 (process_die <DW_TAG_imported_module>): Do not assert anything about
3719 these unsupported tags.
3720
ef4cb050
TT
37212008-08-29 Tom Tromey <tromey@redhat.com>
3722
3723 * maint.c (_initialize_maint_cmds): Fix typo.
3724
a683b3c0
TT
37252008-08-29 Tom Tromey <tromey@redhat.com>
3726
3727 * dwarf2read.c (dwarf2_build_psymtabs_hard): Copy dirname on
3728 obstack.
3729
3e88cf8d
UW
37302008-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3731
3732 * remote.c: Include "gdb_stat.h".
3733
a45ae3ed
UW
37342008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3735
3736 * dummy-frame.h (dummy_frame_pop): Add prototype.
3737 * dummy-frame.c: Include "observer.h".
3738 (dummy_frame_push): Do not check for stale frames.
3739 (dummy_frame_pop): New function.
3740 (cleanup_dummy_frames): New function.
3741 (_initialize_dummy_frame): Install it as inferior_created observer.
3742
3743 * frame.h (struct frame_id): Update comments.
3744 (frame_id_inner): Remove prototype.
3745 * frame.c (frame_id_inner): Make static. Add comments.
3746 (frame_find_by_id): Update frame_id_inner safety net check to avoid
3747 false positives for targets using non-contiguous stack ranges.
3748 (get_prev_frame_1): Update frame_id_inner safety net check.
3749 (frame_pop): Call dummy_frame_pop when popping a dummy frame.
3750
3751 * stack.c (return_command): Directly pop the selected frame.
3752 * infrun.c (handle_inferior_event): Remove dead code.
3753 * i386-tdep.c (i386_push_dummy_call): Update comment.
3754
879d1e6b
UW
37552008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3756
3757 * breakpoint.c (remove_breakpoint): Do not fail if unable to remove
3758 breakpoint from shared library.
3759
97ec2c2f
UW
37602008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3761
3762 * solib-svr4.c (read_program_header): New function.
3763 (scan_dyntag_auxv): New function.
3764 (elf_locate_base): Use it if scan_dyntag fails.
3765 (find_program_interpreter): New function.
3766 (enable_break): Use it instead of .interp section.
3767
f1838a98
UW
37682008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3769
3770 * remote.h (remote_filename_p, remote_bfd_open): Add prototypes.
3771 * remote.c (remote_bfd_iovec_open, remote_bfd_iovec_close,
3772 remote_bfd_iovec_pread, remote_bfd_iovec_stat, remote_filename_p,
3773 remote_bfd_open): New functions.
3774 (remote_hostio_send_command): Fail safely if remote connection
3775 is not set up.
3776
3777 * solist.h (solib_open): Remove prototype.
3778 (solib_bfd_open): Add prototype.
3779 * solib.c: Include "remote.h".
3780 (solib_open): Remove, replace by ...
3781 (solib_bfd_open): ... this new function. Handle remote BFDs.
3782 (solib_map_sections): Replace solib_open by solib_bfd_open.
3783 * solib-frv.c: Include "exceptions.h".
3784 (enable_break2): Replace solib_open by solib_bfd_open.
3785 * solib-svr4.c: Include "exceptions.h".
3786 (enable_break): Replace solib_open by solib_bfd_open.
3787
3788 * symfile.c: Include "remote.h".
3789 (build_id_verify): Handle remote BFDs.
3790 (separate_debug_file_exists): Use BFD to access file. Handle
3791 remote BFDs.
3792 (symfile_bfd_open): Handle remote BFDs.
3793 (reread_symbols): Handle remote BFDs.
3794
3795 * NEWS: Mention "remote:" argument prefix to "set sysroot".
3796
1cf3db46
UW
37972008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3798
3799 * gdbarch.sh (target_gdbarch): New global variable.
3800 (deprecated_current_gdbarch_select_hack): Set it.
3801 * gdbarch.c, gdbarch.h: Regenerate.
3802
3803 * arch-utils.c (gdbarch_update_p): Use target_gdbarch instead
3804 of current_gdbarch.
3805 * target-descriptions.c (target_find_description): Likewise.
3806 * arm-tdep.c (arm_update_current_architecture): Likewise.
3807 (show_fp_model, arm_show_abi, arm_show_fallback_mode,
3808 arm_show_force_mode): Likewise.
3809 * mips-tdep.c (show_mask_address, show_mipsfpu_command,
3810 show_mips_abi): Likewise.
3811 * mep-tdep.c (me_module_register_set, current_me_module): Likewise.
3812
3813 * target.c (target_translate_tls_address): Use target_gdbarch
3814 instead of current_gdbarch.
3815 * remote.c (struct packet_reg): Likewise.
3816 (get_remote_arch_state, packet_reg_from_regnum,
3817 packet_reg_from_pnum, remote_check_symbols, remote_wait,
3818 remote_address_masked, remote_insert_breakpoint,
3819 remote_insert_hw_breakpoint, remote_read_description): Likewise.
3820 * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3821 * remote-mips.c (mips_open, mips_common_breakpoint): Likewise.
3822 * cris-tdep.c (cris_can_use_hardware_watchpoint): Likewise.
3823
3824 * solib.c (solib_open, solib_map_sections, solib_read_symbols,
3825 solib_add, info_sharedlibrary_command, solib_address,
3826 solib_create_inferior_hook, in_solib_dynsym_resolve_code,
3827 solib_global_lookup): Likewise.
3828 * solib-frv.c (enable_break2, frv_relocate_main_executable): Likewise.
3829 * solib-irix.c (irix_current_sos, irix_open_symbol_file_object):
3830 Likewise.
3831 * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3832 * solib-svr4.c (exec_entry_point, enable_break, svr4_free_so,
3833 set_solib_svr4_fetch_link_map_offsets, svr4_fetch_link_map_offsets):
3834 Likewise.
3835 * nto-tdep.c (nto_find_and_open_solib, nto_init_solib_absolute_prefix,
3836 nto_truncate_ptr): Likewise.
3837 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Likewise.
3838
6207416c
LM
38392008-08-26 Luis Machado <luisgpm@br.ibm.com>
3840
3841 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections) New structure.
3842 (ppc_linux_vmx_regset_sections): New structure.
3843 (ppc_linux_fp_regset_sections): New structure.
3844 (ppc_linux_init_abi): Select core-file regset based on target
3845 features.
3846
0ff58721
UW
38472008-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3848
3849 * target.c (debug_print_register): Use regcache_raw_collect
3850 instead of regcache_cooked_read. Only handle raw registers.
3851
6c5561f9
PA
38522008-08-25 Pedro Alves <pedro@codesourcery.com>
3853
3854 * cp-name-parser.y: Include config.h before system headers.
3855
ed0c3906
UW
38562008-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3857
3858 * m88k-tdep.c: Update for unwinder changes.
3859
119ac181
TT
38602008-08-24 Tom Tromey <tromey@redhat.com>
3861
3862 * s390-tdep.c (s390_address_class_type_flags): Use
3863 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1.
3864 (s390_address_class_type_flags_to_name): Likewise.
3865 (s390_address_class_name_to_type_flags): Likewise.
3866
803e1097
TT
38672008-08-24 Tom Tromey <tromey@redhat.com>
3868
3869 * rs6000-tdep.c (rs6000_builtin_type_vec128): Don't use
3870 TYPE_FLAGS.
3871 * features/rs6000/powerpc-vsx32l.c
3872 (initialize_tdesc_powerpc_vsx32l): Update.
3873 * features/rs6000/powerpc-vsx32.c
3874 (initialize_tdesc_powerpc_vsx32): Update.
3875 * features/rs6000/powerpc-vsx64.c
3876 (initialize_tdesc_powerpc_vsx64): Update.
3877 * features/rs6000/powerpc-vsx64l.c
3878 (initialize_tdesc_powerpc_vsx64l): Update.
3879 * target-descriptions.c (maint_print_c_tdesc_cmd): Emit
3880 TYPE_VECTOR, not TYPE_FLAGS.
3881
876cecd0
TT
38822008-08-24 Tom Tromey <tromey@redhat.com>
3883
3884 * xml-tdesc.c (tdesc_end_union): Update.
3885 * stabsread.c (define_symbol): Update.
3886 (read_type): Update.
3887 (read_struct_type): Update.
3888 (read_enum_type): Update.
3889 * spu-tdep.c (spu_builtin_type_vec128): Update.
3890 * sh-tdep.c (sh_push_dummy_call_fpu): Update.
3891 (sh_push_dummy_call_nofpu): Update.
3892 * mdebugread.c (parse_symbol): Update.
3893 (parse_symbol): Update.
3894 (parse_symbol): Update.
3895 (upgrade_type): Update.
3896 * jv-lang.c (java_lookup_class): Update.
3897 * iq2000-tdep.c (iq2000_pointer_to_address): Update.
3898 * i386-tdep.c (i386_mmx_type): Update.
3899 (i386_sse_type): Update.
3900 * gdbtypes.h (enum type_flag_value): New enum.
3901 (enum type_instance_flag_value): New enum.
3902 (TYPE_FLAG_UNSIGNED, TYPE_FLAG_NOSIGN, TYPE_FLAG_STUB,
3903 TYPE_FLAG_TARGET_STUB, TYPE_FLAG_STATIC, TYPE_FLAG_PROTOTYPED,
3904 TYPE_FLAG_INCOMPLETE, TYPE_FLAG_VARARGS, TYPE_FLAG_VECTOR,
3905 TYPE_FLAG_FIXED_INSTANCE, TYPE_FLAG_STUB_SUPPORTED,
3906 TYPE_FLAG_NOTTEXT): Now enum constants.
3907 (TYPE_FLAG_CONST, TYPE_FLAG_VOLATILE, TYPE_FLAG_CODE_SPACE,
3908 TYPE_FLAG_DATA_SPACE, TYPE_FLAG_ADDRESS_CLASS_1,
3909 TYPE_FLAG_ADDRESS_CLASS_2): Remove.
3910 (TYPE_INSTANCE_FLAG_CONST, TYPE_INSTANCE_FLAG_VOLATILE,
3911 TYPE_INSTANCE_FLAG_CODE_SPACE, TYPE_INSTANCE_FLAG_DATA_SPACE,
3912 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_1,
3913 TYPE_INSTANCE_FLAG_ADDRESS_CLASS_2): New constants.
3914 (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB, TYPE_TARGET_STUB,
3915 TYPE_STATIC, TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_VARARGS,
3916 TYPE_VECTOR, TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED,
3917 TYPE_NOTTEXT): Update.
3918 (TYPE_FLAG_ADDRESS_CLASS_ALL): Remove.
3919 (TYPE_INSTANCE_FLAG_ADDRESS_CLASS_ALL): New define.
3920 (TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE,
3921 TYPE_ADDRESS_CLASS_1, TYPE_ADDRESS_CLASS_2,
3922 TYPE_ADDRESS_CLASS_ALL): Update.
3923 (struct main_type) <flags>: Remove.
3924 <flag_unsigned, flag_nosign, flag_stub, flag_target_stub,
3925 flag_static, flag_prototyped, flag_incomplete, flag_varargs,
3926 flag_vector, flag_stub_supported, flag_nottext,
3927 flag_fixed_instance>: New fields.
3928 <nfields, vptr_fieldno>: Move earlier.
3929 (TYPE_FLAGS): Remove.
3930 * gdbtypes.c (make_pointer_type): Update.
3931 (address_space_name_to_int): Update.
3932 (address_space_int_to_name): Update.
3933 (make_type_with_address_space): Update.
3934 (make_cv_type): Update.
3935 (create_range_type): Update.
3936 (get_discrete_bounds): Update.
3937 (create_set_type): Update.
3938 (make_vector_type): Update.
3939 (smash_to_method_type): Update.
3940 (check_typedef): Update.
3941 (check_stub_method): Update.
3942 (init_type): Individually assign flag fields.
3943 (recursive_dump_type): Don't print entire TYPE_FLAGS field. Do
3944 print TYPE_FIXED_INSTANCE, TYPE_STUB_SUPPORTED, and TYPE_NOTTEXT.
3945 (copy_type_recursive): Copy the entire main type. Don't use
3946 TYPE_FLAGS.
3947 * features/rs6000/powerpc-altivec64l.c
3948 (initialize_tdesc_powerpc_altivec64l): Update.
3949 * features/rs6000/powerpc-altivec64.c
3950 (initialize_tdesc_powerpc_altivec64): Update.
3951 * features/rs6000/powerpc-altivec32l.c
3952 (initialize_tdesc_powerpc_altivec32l): Update.
3953 * features/rs6000/powerpc-altivec32.c
3954 (initialize_tdesc_powerpc_altivec32): Update.
3955 * features/rs6000/powerpc-7400.c (initialize_tdesc_powerpc_7400):
3956 Update.
3957 * features/arm-with-iwmmxt.c (initialize_tdesc_arm_with_iwmmxt):
3958 Update.
3959 * dwarf2read.c (read_structure_type): Update.
3960 (read_enumeration_type): Likewise.
3961 (process_enumeration_scope): Likewise.
3962 (read_tag_pointer_type): Likewise.
3963 (read_subroutine_type): Likewise.
3964 (read_subroutine_type): Likewise.
3965 (read_base_type): Likewise.
3966 * coffread.c (coff_read_enum_type): Update.
3967 * ada-valprint.c (adjust_type_signedness): Update.
3968 * ada-typeprint.c (print_record_field_types): Update.
3969 * ada-lang.c (packed_array_type): Update.
3970 (empty_record): Don't reset TYPE_FLAGS.
3971 (ada_template_to_fixed_record_type_1): Update.
3972 (ada_template_to_fixed_record_type_1): Likewise.
3973 (template_to_static_fixed_type): Likewise.
3974 (to_record_with_fixed_variant_part): Likewise.
3975 (to_fixed_record_type): Likewise.
3976 (to_fixed_array_type): Likewise.
3977 (to_static_fixed_type): Likewise.
3978
d4ce0d3f
TT
39792008-08-23 Jim Blandy <jimb@redhat.com>
3980
3981 PR macros/607:
3982 * symmisc.c (print_symbol_bcache_statistics): Include statistics
3983 for the macro bcache.
3984
2e668a5d
TT
39852008-08-23 Tom Tromey <tromey@redhat.com>
3986
3987 * macrotab.h (struct macro_definition) <kind>: Shrink to one bit.
3988 (argc): Now 31 bits.
3989
75a2d5e7
TT
39902008-08-22 Tom Tromey <tromey@redhat.com>
3991
3992 * NEWS: Move macro entries back under "New commands".
3993
25db0f1b
UW
39942008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
3995
3996 * breakpoint.c (create_overlay_event_breakpoint): Rename to ...
3997 (create_overlay_event_breakpoint_1): ... this. Add OBJFILE parameter.
3998 (create_overlay_event_breakpoint): Loop over all objfiles to install
3999 multiple instances of the overlay event breakpoint if present.
4000
0391f248
UW
40012008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4002
4003 * spu-tdep.c (spu_overlay_new_objfile): Only consider SPU objfiles.
4004 (info_spu_event_command): Command only supported on SPU architecture.
4005 (info_spu_signal_command): Likewise.
4006 (info_spu_mailbox_command): Likewise.
4007 (info_spu_dma_command): Likewise.
4008 (info_spu_proxydma_command): Likewise.
4009
24a73cce
UW
40102008-08-22 Ulrich Weigand <uweigand@de.ibm.com>
4011
4012 * infrun.c (adjust_pc_after_break): Do not call get_thread_regcache
4013 if the thread has already exited.
4014
e0bb1c1c
PA
40152008-08-22 Pedro Alves <pedro@codesourcery.com>
4016
4017 * infrun.c (proceed): Move back setting previous_inferior_ptid
4018 from here ...
4019 (wait_for_inferior): ... to here.
4020 (fetch_inferior_event): ... and here.
4021
a3ecef73
UW
40222008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4023
4024 * gdbarch.sh: Include "regcache.h" into gdbarch.c.
4025 (deprecated_current_gdbarch_select_hack): Call registers_changed
4026 instead of reinit_frame_cache.
4027 * gdbarch.c: Regenerate.
4028
45148c2e
UW
40292008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4030
4031 * elfread.c (elf_symtab_read): Do not relocate thread-local symbols.
4032
6a94242b
DJ
40332008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4034
4035 * xcoffread.c (SYMNAME_ALLOC): Correct syntax.
4036
5045add0
UW
40372008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4038
4039 * findvar.c (locate_var_value): Do not call get_frame_arch
4040 with a NULL frame argument.
4041
029a67e4
UW
40422008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4043
4044 * frame.h (frame_map_regnum_to_name): Remove prototype.
4045 (frame_map_name_to_regnum): Remove prototype.
4046 * frame.c (frame_map_regnum_to_name): Remove.
4047 (frame_map_name_to_regnum): Remove.
4048 (frame_unwind_register_value): Use user_reg_map_regnum_to_name
4049 instead of frame_map_regnum_to_name.
4050 * ax-gdb.c: Include "user-regs.h".
4051 (gen_expr): Use user_reg_map_name_to_regnum instead of
4052 frame_map_name_to_regnum.
4053 * eval.c: Include "user-regs.h".
4054 (evaluate_subexp_standard): Use user_reg_map_name_to_regnum
4055 instead of frame_map_name_to_regnum.
4056 * infcmd.c (registers_info): Likewise.
4057 * parse.c: Include "user-regs.h".
4058 (write_dollar_variable): Use user_reg_map_name_to_regnum
4059 instead of frame_map_name_to_regnum.
4060 * tracepoint.c: Include "user-regs.h".
4061 (encode_actions): Use user_reg_map_name_to_regnum
4062 instead of frame_map_name_to_regnum.
4063 * valops.c: Include "user-regs.h".
4064 (value_fetch_lazy): Use user_reg_map_regnum_to_name instead
4065 of frame_map_regnum_to_name.
4066
e84ee240
UW
40672008-08-21 Ulrich Weigand <uweigand@de.ibm.com>
4068
4069 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Read
4070 and manually relocate .opd contents from BFD instead of reading
4071 them from target memory.
4072
0114d602
DJ
40732008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4074
4075 * dwarf2read.c (processing_current_prefix): Delete static
4076 variable.
4077 (process_full_comp_unit): Do not set processing_current_prefix.
4078 (dwarf2_full_name): New function.
4079 (read_func_scope): Do not set processing_current_prefix. Use
4080 determine_prefix.
4081 (read_structure_type): Do not set processing_current_prefix. Remove
4082 unused inner cleanup.
4083 (process_structure_scope): Do not set processing_current_prefix.
4084 (read_enumeration_type): Use dwarf2_full_name.
4085 (determine_class_name): Return a const char *. Put the result
4086 on the objfile obstack. Use dwarf2_full_name.
4087 (read_namespace_type): New function.
4088 (read_namespace): Do not create the type here. Use
4089 determine_prefix.
4090 (read_typedef): Use dwarf2_full_name. Do not pass the name
4091 to init_type.
4092 (read_base_type): Do not pass the name to init_type. Handle
4093 TYPE_FLAG_NOSIGN.
4094 (read_unspecified_type): Do not pass the name to init_type.
4095 (new_symbol): Use dwarf2_full_name instead of
4096 processing_current_prefix.
4097 (read_type_die): Do not set processing_current_prefix. Handle
4098 DW_TAG_namespace.
4099 (determine_prefix): Handle specifications. Return the result
4100 on the objfile obstack. Handle unions correctly.
4101
df8a16a1
DJ
41022008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4103
4104 * buildsym.c (add_symbol_to_list): Do not call
4105 cp_scan_for_anonymous_namespaces here.
4106 (finish_block): Do not call cp_set_block_scope here.
4107 * cp-namespace.c (processing_has_namespace_info)
4108 (processing_current_prefix): Delete.
4109 (cp_initialize_namespace): Do not initialize
4110 processing_has_namespace_info.
4111 (cp_scan_for_anonymous_namespaces): Use SYMBOL_DEMANGLED_NAME. Do
4112 not check processing_has_namespace_info.
4113 (cp_set_block_scope): Take prefix and namespace info flag as
4114 arguments. Honor namespaces regardless of a demangled name.
4115 * cp-support.h (processing_has_namespace_info)
4116 (processing_current_prefix): Delete declarations.
4117 (cp_set_block_scope): Update prototype.
4118 * dwarf2read.c (processing_has_namespace_info)
4119 (processing_current_prefix): New static variables.
4120 (read_file_scope): Initialize processing_has_namespace_info.
4121 (read_func_scope): Call cp_set_block_scope for C++.
4122 (new_symbol): Call cp_scan_for_anonymous_namespaces for C++.
4123 * symtab.c (symbol_demangled_name): Accept a const argument.
4124 * symtab.h (symbol_demangled_name): Update prototype.
4125
3567439c
DJ
41262008-08-21 Daniel Jacobowitz <dan@codesourcery.com>
4127
4128 * ax-gdb.c (gen_var_ref): Use SYMBOL_LINKAGE_NAME.
4129 * blockframe.c (find_pc_partial_function): Likewise.
4130 * buildsym.c (find_symbol_in_list): Likewise.
4131 * c-valprint.c (c_val_print): Likewise.
4132 * coffread.c (patch_opaque_types, process_coff_symbol): Likewise.
4133 (coff_read_enum_type): Likewise. Use SYMBOL_SET_LINKAGE_NAME.
4134 * cp-support.c (cp_remove_params): Renamed from remove_params and
4135 made global.
4136 (overload_list_add_symbol): Update call to remove_params.
4137 * cp-support.h (cp_remove_params): Declare.
4138 * dwarf2read.c (process_enumeration_scope): Use SYMBOL_LINKAGE_NAME.
4139 (dwarf2_const_value): Use SYMBOL_PRINT_NAME.
4140 * expprint.c (dump_subexp_body_standard): Likewise.
4141 * f-valprint.c (info_common_command, there_is_a_visible_common_named):
4142 Use SYMBOL_LINKAGE_NAME to find symbols and SYMBOL_PRINT_NAME
4143 for messages.
4144 * findvar.c (read_var_value): Use SYMBOL_LINKAGE_NAME.
4145 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4146 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
4147 (hppa_hpux_skip_trampoline_code): Use SYMBOL_LINKAGE_NAME to find
4148 symbols and SYMBOL_PRINT_NAME for messages.
4149 * jv-lang.c (add_class_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4150 * linespec.c (decode_line_2): Use SYMBOL_LINKAGE_NAME.
4151 * mdebugread.c (parse_symbol): Use SYMBOL_LINKAGE_NAME and
4152 SYMBOL_SET_LINKAGE_NAME.
4153 (mylookup_symbol): Use SYMBOL_LINKAGE_NAME.
4154 * minsyms.c (add_minsym_to_demangled_hash_table): Use
4155 SYMBOL_SEARCH_NAME.
4156 (lookup_minimal_symbol): Use SYMBOL_LINKAGE_NAME or
4157 SYMBOL_MATCHES_SEARCH_NAME, depending on the pass.
4158 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Use SYMBOL_LINKAGE_NAME.
4159 * printcmd.c (build_address_symbolic): Use SYMBOL_LINKAGE_NAME.
4160 (address_info): Use SYMBOL_PRINT_NAME for messages and
4161 SYMBOL_LINKAGE_NAME for lookups.
4162 * sol-thread.c (info_cb): Use SYMBOL_PRINT_NAME for messages.
4163 * stabsread.c (patch_block_stabs, define_symbol)
4164 (read_type, read_enum_type, common_block_end)
4165 (cleanup_undefined_types_1, scan_file_globals): Use
4166 SYMBOL_LINKAGE_NAME, SYMBOL_SET_LINKAGE_NAME, ALL_OBJFILE_MSYMBOLS,
4167 and SYMBOL_PRINT_NAME.
4168 * stack.c (print_frame_args): Use SYMBOL_LINKAGE_NAME.
4169 (print_frame, frame_info): Use SYMBOL_PRINT_NAME for output. Use
4170 cp_remove_params instead of cplus_demangle.
4171 (print_block_frame_labels, print_frame_arg_vars): Use
4172 SYMBOL_LINKAGE_NAME.
4173 * symmisc.c (dump_msymbols): Use ALL_OBJFILE_MSYMBOLS and
4174 SYMBOL_LINKAGE_NAME.
4175 (dump_symtab_1, print_symbol, print_partial_symbols)
4176 (maintenance_check_symtabs): Use SYMBOL_LINKAGE_NAME.
4177 * symtab.h (DEPRECATED_SYMBOL_NAME): Delete.
4178 (SYMBOL_SET_LINKAGE_NAME): New.
4179 (SYMBOL_SET_NAMES): Add a comment.
4180 * tracepoint.c (set_traceframe_context, validate_actionline)
4181 (collect_symbol, scope_info): Use SYMBOL_LINKAGE_NAME for
4182 lookups and SYMBOL_PRINT_NAME for output.
4183 * typeprint.c (typedef_print): Use SYMBOL_LINKAGE_NAME.
4184 * xcoffread.c (process_xcoff_symbol): Use SYMBOL_SET_LINKAGE_NAME.
4185
aded6f54
PA
41862008-08-21 Pedro Alves <pedro@codesourcery.com>
4187
4188 * arm-tdep.c (arm_pc_is_thumb): Use obj_section_addr.
4189 * hppa-hpux-tdep.c (hppa_hpux_find_dummy_bpaddr): Likewise.
4190 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Use
4191 obj_section_addr and obj_section_endaddr.
4192 * hppa-tdep.c (hppa64_convert_code_addr_to_fptr): Likewise.
4193 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4194 * ia64-tdep.c (ia64_find_global_pointer): Likewise.
4195 (find_extant_func_descr): Likewise.
4196 * solib-frv.c (frv_relocate_main_executable): Use
4197 obj_section_addr.
4198 * xstormy16-tdep.c (xstormy16_find_jmp_table_entry): Use
4199 obj_section_addr and obj_section_endaddr.
4200
158c7665
PH
42012008-08-21 Paul N. Hilfinger <hilfinger@adacore.com>
4202
4203 * NEWS: Amplify last entry on boolean types in Ada.
4204
f2f0e013
DJ
42052008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4206
4207 * dwarf2read.c (die_specification, dwarf2_extension, follow_die_ref):
4208 Make the dwarf2_cu * parameter output as well as input. Update it if
4209 we follow a reference to another CU.
4210 (read_func_scope, determine_class_name, namespace_name, dwarf2_attr)
4211 (die_type, die_containing_type): Update calls to changed functions.
4212 Use the returned CU along with the returned DIE.
4213 (read_namespace): Use dwarf2_attr instead of dwarf2_extension.
4214
03dd20cc
DJ
42152008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4216
4217 * dwarf2read.c (queue_comp_unit): Take an objfile argument. Read
4218 in the DIEs here.
4219 (process_queue): Do not read in the DIEs here.
4220 (psymtab_to_symtab_1): Update call to queue_comp_unit.
4221 (read_full_die): Do not call queue_comp_unit from here.
4222 (maybe_queue_comp_unit): New function.
4223 (follow_die_ref): Use it.
4224
b60c80d6
DJ
42252008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4226
4227 * dwarf2read.c (struct attribute): Move earlier.
4228 (struct die_info): Change attrs to a trailing array.
4229 (dwarf_alloc_die): Take the number of attributes. Allocate space
4230 for them.
4231 (read_full_die): Update call to dwarf_alloc_die. Do not manually
4232 allocate attributes.
4233
51545339
DJ
42342008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4235
4236 * dwarf2read.c (REF_HASH_SIZE): Delete.
4237 (struct dwarf2_cu): Replace die_ref_table with die_hash.
4238 (struct die_info): Remove next_ref.
4239 (store_in_ref_table): Remove offset argument. Rewrite to use
4240 htab_find_slot_with_hash.
4241 (die_hash, die_eq): New.
4242 (read_comp_unit): Allocate the die_hash.
4243 (read_die_and_children): Update call to store_die_ref.
4244 (follow_die_ref): Rewrite to use htab_find_with_hash.
4245
7475d072
DJ
42462008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4247
4248 * dwarf2read.c (free_die_list, copy_die): Delete.
4249 (dwarf_alloc_die): Take a CU argument. Allocate the new DIE
4250 on the obstack.
4251 (read_full_die): Update call to dwarf_alloc_die. Allocate
4252 attributes on the CU obstack.
4253 (free_one_comp_unit): Do not call free_die_list.
4254
1d325ec1
DJ
42552008-08-20 Daniel Jacobowitz <dan@codesourcery.com>
4256
4257 * dwarf2read.c (read_die_and_children): Ignore NULL DIEs.
4258 (read_die_and_siblings): Likewise. Do not add padding DIEs to the
4259 sibling list.
4260 (read_full_die): Do not allocate DIEs for abbrev 0.
4261 (follow_die_ref): Correct error message.
4262
b96e2927
PA
42632008-08-20 Pedro Alves <pedro@codesourcery.com>
4264
4265 * linespec.c (symtab_from_filename): Also throw NOT_FOUND_ERROR if
4266 there are no symbols loaded, instead of throwing a generic error.
4267 (decode_variable): Likewise.
4268
f1f6aadf
PA
42692008-08-20 Pedro Alves <pedro@codesourcery.com>
4270
4271 * objfiles.h (struct obj_section): Remove addr and endaddr fields.
4272 (obj_section_offset, obj_section_addr, obj_section_endaddr): New
4273 macros.
4274 * objfiles.c (add_to_objfile_sections): Don't set addr, endaddr
4275 and offset. Use size_t instead of unsigned long.
4276 (build_objfile_section_table): Use size_t instead of unsigned
4277 long.
4278 (objfile_relocate): Don't relocate s->addr and s->endaddr, they're
4279 gone.
4280 (find_pc_sect_section): Use obj_section_addr and
4281 obj_section_endaddr.
4282 * symfile.c (symfile.c): Remove code that maps sections
4283 offsets in "addr" to the object's sections.
4284 * blockframe.c (find_pc_partial_function): Use obj_section_endaddr.
4285 * gcore.c (gcore_create_callback): Use obj_section_addr and
4286 obj_section_endaddr.
4287 * maint.c (print_objfile_section_info): Likewise.
4288 * printcmd.c (sym_info): Use obj_section_addr and
4289 obj_section_endaddr.
4290 * symtab.c (fixup_section): Likewise.
4291
3923a2b2
MK
42922008-08-20 Mark Kettenis <kettenis@gnu.org>
4293
4294 * sparc-tdep.c: Make some comments catch up with reality.
4295
b3eb342c
VP
42962008-08-20 Vladimir Prus <vladimir@codesourcery.com>
4297
4298 * NEWS: Mention 'set target-async'
4299
7f7efbd9
VP
43002008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4301
4302 * infrun.c (resume): If the thread is placed to the deferred step
4303 queue, mark it as running.
4304
9908b566
VP
43052008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4306
4307 Make sure target supports non-stop.
4308 * infcmd.c (run_command_1, attach_command): If non-stop mode
4309 is requested, verify the target supports it.
4310 * linux-nat.c (linux_nat_supports_non_stop): New.
4311 (linux_nat_add_target): Register the above.
4312 * target.c (find_default_supports_non_stop)
4313 (target_supports_non_stop): New.
4314 (init_dummy_target): Register find_default_supports_non_stop.
4315 * target.h (struct target_ops): New field to_supports_non_stop.
4316 (target_supports_non_stop): New.
4317
c6ebd6cf
VP
43182008-08-19 Pedro Alves <pedro@codesourcery.com>
4319 Vladimir Prus <vladimir@codesourcery.com>
4320
4321 * target.c (target_async_permitted, target_async_permitted_1)
4322 (set_maintenance_target_async_permitted)
4323 (show_maintenance_target_async_permitted): New.
4324 (initialize_targets): Register 'set target-async'.
4325 * target.h (target_async_permitted): Declare.
4326 * linux-nat.c (linux_nat_async_enabled)
4327 (linux_nat_async_permitted, set_maintenance_linux_async_permitted)
4328 (show_maintenance_linux_async_permitted): Remove.
4329 (sigchld_handler, linux_nat_is_async_p, linux_nat_can_async_p)
4330 (get_pending_events, linux_nat_async): Use target_async_permitted.
4331 (linux_nat_set_async_mode): Remove, moving the only used bits
4332 into...
4333 (linux_nat_setup_async): This.
4334 (_initialize_linux_nat): Do not register 'maint set linux-async'.
4335 Use linux_nat_setup_async.
4336 * remote.c (remote_async_permitted, remote_async_permitted_set)
4337 (set_maintenance_remote_async_permitted)
4338 (show_maintenance_remote_async_permitted): Remove.
4339 (remote_open_1, remote_terminal_inferior, remote_can_async_p)
4340 (remote_is_async_p): Use target_async_permitted.
4341 (_initialize_remote): Don't register 'main set remote-async'.
4342 * mi/mi-cmds.c (mi_cmds): Register -list-target-features.
4343 * mi/mi-cmds.h (mi_cmd_list_target_features): New.
4344 * mi/mi-main.c (mi_cmd_list_target_features): New.
4345
073120b9
VP
43462008-08-19 Vladimir Prus <vladimir@codesourcery.com>
4347
4348 * target.c (maybe_kill_then_attach)
4349 (maybe_kill_then_create_inferior): Remove.
4350 (update_current_target): Do not default to_attach,
4351 to_create_inferiour, to_is_async_p.
4352
690cc4eb 43532008-08-19 Paul N. Hilfinger <hilfinger@adacore.com>
bfb8797a
PH
4354
4355 Changes for supporting boolean types in debugging data.
690cc4eb
PH
4356 * ada-lang.c (discrete_type_high_bound,discrete_type_low_bound): Change
4357 API to return LONGEST values rather than struct values.
4358 (ada_evaluate_subexp): Change to use new API of discrete_type_low_bound
4359 and discrete_type_high_bound.
4360 (to_fixed_range_type): Create a range type in cases where
4361 argument is base type and its limits are representable as ints.
4362 (ada_is_modular_type): Correct so that base type must be integral.
4363 * ada-lex.l (TRUEKEYWORD,FALSEKEYWORD): Make 'true' and 'false'
4364 keywords when they appear alone, since we are phasing out
bfb8797a 4365 direct representation of these identifiers in debugging data.
690cc4eb
PH
4366 * ada-exp.y: Define 'true' and 'false' as primaries.
4367 (type_boolean): New function.
4368 (type_int,type_long,type_long_long,type_floattype_double)
4369 (type_long_double): Remove uses of current_gdbarch for consistency
4370 with type_boolean.
4371 (write_int): Change comment to indicate that it might write boolean
4372 constant as well.
4373 * ada-typeprint.c (ada_print_type): Print '(false, true)' for boolean
4374 type, since will no longer be represented as enumerated type in
4375 debugging data.
4376 * ada-valprint.c (print_optional_low_bound): Handle boolean case
4377 as well.
bfb8797a
PH
4378 * NEWS: Note support boolean types.
4379
39540081
PA
43802008-08-18 Pedro Alves <pedro@codesourcery.com>
4381
4382 * bsd-uthread.c (bsd_uthread_close): New.
4383 (bsd_uthread_deactivate): Don't cleanup here, just unpush the
4384 target.
4385 (bsd_uthread_solib_loaded): Fix typo.
4386 (bsd_uthread_target): Register bsd_uthread_close.
4387
87ab71f0
PA
43882008-08-18 Pedro Alves <pedro@codesourcery.com>
4389
4390 * corelow.c (core_open): Assume there was no upper layer left
4391 behind from a previous inferior.
4392 * target.c (pop_all_targets): Rename to ...
4393 (pop_all_targets_above): ... this. Add a target stratum
4394 parameter. Use it instead of hardcoding the dummy_stratum.
4395 (pop_all_targets): New, defer to pop_all_targets_above.
4396 (target_preopen): Use pop_all_targets_above.
4397 * target.h (pop_all_targets_above): Declare.
4398
5231c1fd
PA
43992008-08-18 Pedro Alves <pedro@codesourcery.com>
4400
4401 * gdbthread.h (thread_change_ptid): Declare.
4402 * infrun.c (infrun_thread_ptid_changed): New.
4403 (_initialize_infrun): Attach infrun_thread_ptid_changed to the
4404 thread_ptid_changed observer.
4405 * regcache.c (regcache_thread_ptid_changed): New.
4406 (_initialize_regcache): Attach regcache_thread_ptid_changed to the
4407 thread_ptid_changed observer.
4408 * thread.c (thread_change_ptid): New.
4409
f98dfd4b
TT
44102008-08-18 Tom Tromey <tromey@redhat.com>
4411
4412 * symfile.c (reread_symbols): Update.
4413 * solib-sunos.c (allocate_rt_common_objfile): Update.
4414 * objfiles.c (allocate_objfile): Update.
4415 * objfiles.h (struct objfile) <md, mmfd, deprecated_obj_private>:
4416 Remove.
4417
d87ecdfb
TT
44182008-08-18 Tom Tromey <tromey@redhat.com>
4419
4420 * gdbtypes.c (copy_type_recursive): Allocate 'stored' on objfile's
4421 obstack.
4422
46a9b8ed
DJ
44232008-08-18 Daniel Jacobowitz <dan@codesourcery.com>
4424
4425 * rs6000-tdep.c (struct rs6000_framedata): Add gpr_mask, used_bl,
4426 lr_register.
4427 (rs6000_in_function_epilogue_p): Check for bctr.
4428 (skip_prologue): Initialize lr_register. Set lr_reg to a register
4429 number. Set gpr_mask and used_bl. Continue scanning while some
4430 expected registers are not saved. Set lr_register if LR is not
4431 stored.
4432 (rs6000_frame_cache): Handle gpr_mask and lr_register.
4433
44feb3ce
TT
44342008-08-17 Tom Tromey <tromey@redhat.com>
4435
4436 PR gdb/1535:
4437 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): New macros.
4438 (ep_find_event_name_end): Remove.
4439 (catch_fork_temporary, catch_vfork_temporary,
4440 catch_fork_permanent, catch_vfork_permanent): New constants.
4441 (catch_vfork, catch_fork): Remove.
4442 (catch_fork_command_1): Add 'command' argument. Remove
4443 'fork_kind' and 'tempflag'. Handle NULL 'arg'. Update switch for
4444 all cases.
4445 (catch_exec_command_1): Add 'command' argument; remove
4446 'tempflag'. Handle NULL 'arg'.
4447 (catch_load_command_1): Likewise.
4448 (catch_unload_command_1): Likewise.
4449 (catch_ada_exception_command): Likewise.
4450 (catch_assert_command): Likewise.
4451 (catch_catch_command): New function.
4452 (catch_throw_command): Likewise.
4453 (catch_command_1): Remove.
4454 (catch_command): Just call error.
4455 (tcatch_command): Likewise.
4456 (catch_cmdlist): New global.
4457 (tcatch_cmdlist): Likewise.
4458 (add_catch_command): New function.
4459 (_initialize_breakpoint): Create "catch" and "tcatch" as prefix
4460 commands. Create all catch sub-commands.
4461
0d6431e2
PA
44622008-08-17 Pedro Alves <pedro@codesourcery.com>
4463
4464 * gdbthread.h: Add comments.
4465 * stack.c (get_selected_block): Return 0 on an exited thread.
4466 * top.c (execute_command): Check for is_stopped, not !is_running.
4467 * event-top.c (command_handler): Likewise.
4468
8931f526
PA
44692008-08-16 Pedro Alves <pedro@codesourcery.com>
4470
4471 * mi/mi-main.c (mi_cmd_exec_next, mi_cmd_exec_next_instruction)
4472 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
4473 (mi_cmd_exec_finish): Remove "return".
4474
aa76d38d
PA
44752008-08-16 Pedro Alves <pedro@codesourcery.com>
4476
4477 * target.h (pop_all_targets): Declare.
4478 * target.c (pop_all_targets): New.
4479 * top.c (quit_target): Pop all targets instead of just closing the
4480 current.
4481
311a4e6b
TJB
44822008-08-16 Vladimir Prus <vladimir@codesourcery.com>
4483 Thiago Jung Bauermann <bauerman@br.ibm.com>
4484
4485 * cli-script.c (read_next_line): Add parse_commands argument.
4486 (recurse_read_control_structure): Adapt to new read_next_line
4487 signature.
4488 (read_command_lines): Add parse_commands argument.
4489 (define_command): Adapt to new read_command_lines signature.
4490 (document_command): Likewise.
4491 * breakpoint.c (commands_command): Likewise.
4492 * defs.h (read_command_lines): Adjust function prototype.
4493
24209737
PH
44942008-08-16 Paul N. Hilfinger <hilfinger@adacore.com>
4495
4496 * ada-lang.c (pos_atr): Account for the possibility that the
4497 argument may be a reference.
4498
9f1d5432
PH
44992008-08-16 Paul N. Hilfinger <hilfingr@adacore.com>
4500
4501 * xcoffread.c (scan_xcoff_symtab): Do not include global symbols
4502 ('F' format) for @FIX names generated by the loader, retaining only
4503 the minimal symbols (and no partial symbol tables) for these names.
4504 Fixes warning messages about symbols that are found in partial
4505 symbol tables, but not full symbol tables.
4506
83c265ab
PA
45072008-08-16 Pedro Alves <pedro@codesourcery.com>
4508
4509 * infrun.c (fetch_inferior_event): Only call normal_stop if not
4510 stopping quietly.
4511
604c2f83
LM
45122008-08-15 Luis Machado <luisgpm@br.ibm.com>
4513
4514 * rs6000-tdep: Include "features/rs6000/powerpc-vsx32.c".
4515 Include "features/rs6000/powerpc-vsx64.c".
4516 (ppc_supply_vsxregset): New function.
4517 (ppc_collect_vsxregset): New function.
4518 (IS_VSX_PSEUDOREG): New macro.
4519 (IS_EFP_PSEUDOREG): New macro.
4520 (vsx_register_p): New function.
4521 (ppc_vsx_support_p): New function.
4522 (rs6000_builtin_type_vec128): New function.
4523 (rs6000_register_name): Hide upper halves of vs0~vs31. Return
4524 correct names for VSX registers and EFPR registers.
4525 (rs6000_pseudo_register_type): Return correct types for VSX
4526 and EFPR registers.
4527 (rs6000_pseudo_register_reggroup_p): Return correct group for
4528 VSX and EFPR registers.
4529 (ppc_pseudo_register_read): Rename to dfp_pseudo_register_read.
4530 (ppc_pseudo_register_write): Rename to dfp_pseudo_register_write.
4531 (vsx_pseudo_register_read): New function.
4532 (vsx_pseudo_register_write): New function.
4533 (efpr_pseudo_register_read): New function.
4534 (efpr_pseudo_register_write): New function.
4535 (rs6000_pseudo_register_read): Call new VSX and EFPR read functions.
4536 (rs6000_pseudo_register_write): Call new VSX and EFPR write functions.
4537 (rs6000_gdbarch_init): Declare have_vsx.
4538 Initialize new upper half VSX registers.
4539 Initialize VSX-related and EFPR-related pseudo-registers variables.
4540 Adjust the number of pseudo registers accordingly.
4541
4542 * ppc-linux-nat.c: Define PTRACE_GETVSXREGS, PTRACE_SETVSXREGS
4543 and SIZEOF_VSRREGS.
4544 (gdb_vsxregset_t): New type.
4545 (have_ptrace_getsetvsxregs): New variable.
4546 (fetch_vsx_register): New function.
4547 (fetch_register): Handle VSX registers.
4548 (fetch_vsx_registers): New function.
4549 (fetch_ppc_registers): Handle VSX registers.
4550 (store_ppc_registers): Handle VSX registers.
4551 (store_vsx_register): New function.
4552 (store_register): Handle VSX registers.
4553 (store_vsx_registers): New function.
4554 (ppc_linux_read_description): Handle VSX-enabled inferiors.
4555 (gdb_vsxregset_t): New type.
4556 (supply_vsxregset): New function.
4557 (fill_vsxregset): New function.
4558
4559 * ppc-tdep.h (vsx_register_p): New prototype.
4560 (vsx_support_p): New prototype.
4561 (ppc_vsr0_regnum): New variable.
4562 (ppc_vsr0_upper_regnum): Likewise.
4563 (ppc_efpr0_regnum): Likewise.
4564 (ppc_builtin_type_vec128): New type.
4565 (ppc_num_vsrs): New constant.
4566 (ppc_num_vshrs): New constant.
4567 (ppc_num_efprs): Likewise.
4568 Define POWERPC_VEC_VSX PPC_VSR0_UPPER_REGNUM and PPC_VSR31_UPPER_REGNUM.
4569 (ppc_supply_vsxregset): New prototype.
4570 (ppc_collect_vsxregset): New prototype.
4571
4572 * ppc-linux-tdep.c: Include "features/rs6000/powerpc-vsx32l.c"
4573 Include "features/rs6000/powerpc-vsx64l.c".
4574 (_initialize_ppc_linux_tdep): Initialize VSX-enabled targets.
4575 (ppc_linux_regset_sections): Add new ".reg-ppc-vsx" field.
4576 (ppc32_linux_vsxregset): New 32-bit VSX-enabled regset.
4577 (ppc_linux_regset_from_core_section): Handle VSX core section.
4578 (ppc_linux_core_read_description): Support VSX-enabled core files.
4579
4580 * ppc-linux-tdep.h: Declare *tdesc_powerpc_vsx32l
4581 Declare tdesc_powerpc_vsx64l
4582
4583 * corelow.c (get_core_register_section): Support VSX-enabled
4584 core files.
4585
4586 * features/rs6000/power-vsx.xml: New VSX descriptions.
4587 * features/rs6000/powerpc-vsx32.xml: New file.
4588 * features/rs6000/powerpc-vsx32l.xml: New file.
4589 * features/rs6000/powerpc-vsx64.xml: New file.
4590 * features/rs6000/powerpc-vsx64l.xml: New file.
4591 * features/rs6000/powerpc-vsx32.c: New file (generated).
4592 * features/rs6000/powerpc-vsx32l.c: New file (generated).
4593 * features/rs6000/powerpc-vsx64.c: New file (generated).
4594 * features/rs6000/powerpc-vsx64l.c: New file (generated).
4595 * features/Makefile: Updated with new descriptions.
4596 * regformats/rs6000/powerpc-vsx32l.dat: New file (generated).
4597 * regformats/rs6000/powerpc-vsx64l.dat: New file (generated).
4598
dde7c0a9
VP
45992008-08-15 Vladimir Prus <vladimir@codesourcery.com>
4600
4601 * ia64-linux.nat (_initialize_ia64_linux_nat): Don't
4602 call linux_target twice.
4603
ebd67d87
AR
46042008-08-14 Aleksandar Ristovski <aristovski@qnx.com>
4605
4606 * nto-tdep.c (lm_info): Updated struct lm_info definition from
4607 solib-svr4.c
4608 (LM_ADDR): Use l_addr if available; if not, use link map and set
4609 l_addr.
4610
886a217c
TT
46112008-08-14 Tom Tromey <tromey@redhat.com>
4612
4613 * macrocmd.c (macro_define_command): Check for NULL argument.
4614 (macro_undef_command): Likewise.
4615
3d488bfc
PA
46162008-08-14 Pedro Alves <pedro@codesourcery.com>
4617
4618 * infcmd.c (continue_1): Add an ERROR_NO_INFERIOR call.
4619
33e5cbd6
PA
46202008-08-13 Pedro Alves <pedro@codesourcery.com>
4621
4622 * breakpoint.c (always_inserted_auto, always_inserted_on)
4623 (always_inserted_off, always_inserted_enums): New.
4624 (always_inserted_mode): Change type to char* and point to
4625 always_inserted_auto.
4626 (show_always_inserted_mode): In auto mode, also show the current
4627 effect of the option.
4628 (breakpoints_always_inserted_mode): Adjust for the new auto mode.
4629 (_initialize_breakpoint): Make the "set breakpoints
4630 always-inserted" command an enum command. Extend help to describe
4631 the auto mode.
4632
8fbde58b
UW
46332008-08-13 Ulrich Weigand <uweigand@de.ibm.com>
4634
4635 * spu-tdep.c (info_spu_dma_command): Respect TSQV (tag status
4636 query valid) bit. Ignore bits outside the condition field.
4637 (info_spu_proxydma_command): Ignore bits outside the field.
4638
11fa8e43
MS
46392008-08-12 Michael Snyder <msnyder@vmware.com>
4640
4641 * MAINTAINERS: Update my email address.
4642
fcb09a75
UW
46432008-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4644
4645 * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP.
4646
a6f3e723
SL
46472008-08-12 Pedro Alves <pedro@codesourcery.com>
4648
4649 Add no-ack mode to the remote protocol --- optionally stop ACKing
4650 packets and responses when we have a reliable communication
4651 medium.
4652
4653 Based on Apple's GDB, by Jason Molenda <jmolenda@apple.com>
4654
4655 * remote.c (struct remote_state): Add noack_mode field.
4656 (PACKET_QStartNoAckMode): New.
4657 (remote_start_remote): Don't any outstanding packet here.
4658 (remote_open_1): Clear noack_mode. Ack any outstanding packet
4659 here. Activate noack mode if requested.
4660 (remote_protocol_features): Add QStartNoAckMode.
4661 (remote_open_1):
4662 (putpkt_binary): Don't send ack in noack mode.
4663 (read_frame): Don't recompute the checksum in noack mode.
4664 (getpkt_sane): Skip sending ack if in noack mode.
4665 (_initialize_remote): Add set/show remote noack mode.
4666 * NEWS: Note the new features.
4667
8ab3d180
KB
46682008-08-11 Kevin Buettner <kevinb@redhat.com>
4669
4670 * rs6000-tdep.c (BL_MASK, BL_INSTRUCTION, BL_DISPLACEMENT_MASK):
4671 New macros.
4672 (rs6000_skip_main_prologue): New function.
4673 (rs6000_gdb_arch_init): Register rs6000_skip_main_prologue.
4674
63a61bf6
SL
46752008-08-11 Sandra Loosemore <sandra@codesourcery.com>
4676
4677 * MAINTAINERS (Write After Approval): Add self.
4678
9d4fde75
SS
46792008-08-11 Stan Shebs <stan@codesourcery.com>
4680
4681 ARM BE8 support.
4682 * disasm.c (gdb_disassemble_info): Set endian_code.
4683 * gdbarch.sh (gdbarch_info): New field byte_order_for_code.
4684 * gdbarch.h, gdbarch.c: Regenerate.
4685 * arch-utils.c (initialize_current_architecture): Set the
4686 default byte_order_for_code.
4687 (gdbarch_info_init): Ditto.
4688 (gdbarch_info_fill): Ditto.
4689 * arm-tdep.c (SWAP_INT, SWAP_SHORT): New macros.
4690 (thumb_analyze_prologue): Swap halfword if code endianness is
4691 different from general endianness.
4692 (arm_skip_prologue): Similarly.
4693 (arm_scan_prologue): Ditto.
4694 (thumb_get_next_pc): Ditto.
4695 (arm_get_next_pc): Ditto.
4696 (arm_gdbarch_init): Set byte_order_for_code from BE8 flag,
4697 choose correct endianness for breakpoints.
4698
6c613132
PA
46992008-08-10 Pedro Alves <pedro@codesourcery.com>
4700
4701 * bsd-kvm.c: Include "gdbthread.h".
4702 (bsd_kvm_ptid): New.
4703 (bsd_kvm_open): Add a main thread.
4704 (bsd_kvm_close): Delete it.
4705 (bsd_kvm_thread_alive): New.
4706 (bsd_kvm_pid_to_str): New.
4707 (bsd_kvm_add_target): Register bsd_kvm_thread_alive and
4708 bsd_kvm_pid_to_str.
4709 (bsd_kvm_add_target): Initialize bsd_kvm_ptid.
4710
6eb7ee03
PA
47112008-08-09 Pedro Alves <pedro@codesourcery.com>
4712
4713 * buildsym.c (start_subfile): Properly cast sentinel in concat
4714 call.
4715 * cp-name-parser.y: Include "config.h".
4716 * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in
4717 concat call.
4718 * gdb_select.h: Include sys/time.h if sys/select.h is not
4719 available.
4720
444c3224
PA
47212008-08-09 Pedro Alves <pedro@codesourcery.com>
4722
4723 * go32-nat.c: Include "gdbthread.h".
4724 (go32_stop, go32_kill_inferior): Delete the main thread.
4725 (go32_create_inferior): Add it.
4726 (go32_thread_alive, go32_pid_to_str): New.
4727 (init_go32_ops): Register go32_thread_alive and go32_pid_to_str.
4728
9d0b3624
PA
47292008-08-09 Pedro Alves <pedro@codesourcery.com>
4730
4731 * go32-nat.c (fetch_register, store_register): Pass the regcache
4732 gdbarch to i386_fp_regnum_p and i386_fpc_regnum_p.
4733 (go32_xfer_memory): Change type of myaddr parameter to gdb_byte.
4734 (struct seg_descr, struct seg_descr): pack the whole struct
4735 instead of each member individually.
4736
509238d6
AS
47372008-08-09 Andreas Schwab <schwab@suse.de>
4738
4739 * python/python.c (_initialize_python): Use unabbreviated commands
4740 in prefix name.
4741
c068b4e8
DJ
47422008-08-09 Daniel Jacobowitz <dan@codesourcery.com>
4743
4744 * Makefile.in (stamp-h): Also create .deps.
4745
21374e5f
TT
47462008-08-09 Tom Tromey <tromey@redhat.com>
4747
4748 * Makefile.in (generated_files): Add GNULIB_H.
4749
7be67755
DA
47502008-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4751
4752 * solib-pa64.c (pa64_solib_create_inferior_hook): Don't set
4753 DT_HP_DEBUG_PRIVATE. Add warning if DT_HP_DEBUG_PRIVATE is not set.
4754 Revise comment.
4755 (pa64_current_sos): Remove map private warning warning.
4756 * solib-som.c: Include string.h and sys/utsname.h.
4757 (get_hpux_major_release): New function.
4758 (som_solib_create_inferior_hook): Read dynamic linker header. Warn
4759 about shared library private mapping on HP-UX 11 and later. Only force
4760 private mapping of shared libraries on HP-UX 10 and earlier.
4761 (link_map_start): Delete warning.
4762
e0c62198
L
47632008-08-09 Xuepeng Guo <xuepeng.guo@intel.com>
4764 H.J. Lu <hongjiu.lu@intel.com>
4765 Mark Kettenis <kettenis@gnu.org>
4766
4767 * amd64-tdep.c (amd64_frame_cache): Add saved_sp_reg.
4768 (amd64_init_frame_cache): Initialize saved_sp_reg.
4769 (amd64_analyze_stack_align): New.
4770 (amd64_analyze_prologue): Call it.
4771 (amd64_frame_cache): Use saved_sp_reg if it is invalid. Don't set
4772 %rip to 8 when halfway aligning the stack.
4773
4774 * amd64-tdep.h (amd64_regnum): Add AMD64_R9_REGNUM to
4775 AMD64_R14_REGNUM.
4776
4777 * i386-tdep.c (i386_frame_cache): Remove stack_align. Add
4778 saved_sp_reg.
4779 (i386_alloc_frame_cache): Remove stack_align. Initialize
4780 saved_sp_reg to -1.
4781 (i386_analyze_stack_align): Rewrite.
4782 (i386_frame_cache): Use saved_sp_reg if it is valid.
4783
b9db4ced
UW
47842008-08-09 Ulrich Weigand <uweigand@de.ibm.com>
4785
4786 * target.c: Include "solib.h".
4787 (target_pre_inferior): Call no_shared_libraries.
4788 * infcmd.c (run_command_1): Do not call objfile_purge_solibs
4789 or clear_solib.
4790 (attach_command): Do not call clear_solib.
4791
3979a37f
MK
47922008-08-09 Mark Kettenis <kettenis@gnu.org>
4793
4794 * i386obsd-nat.c (i386obsd_supply_pcb): Supply the right bytes for
4795 the %eip register.
4796
2b26d9fa
TT
47972008-08-08 Tom Tromey <tromey@redhat.com>
4798
4799 * Makefile.in (python.o): Remove dependencies. Use COMPILE and
4800 POSTCOMPILE.
4801 (python-utils.o): Likewise.
4802
f1648876
AS
48032008-08-08 Andreas Schwab <schwab@suse.de>
4804
4805 * corefile.c (_initialize_core): Remove spurious paren from set
4806 gnutarget doc string.
4807
b7622095
LM
48082008-08-08 Luis Machado <luisgpm@br.ibm.com>
4809
4810 * ppc-linux-nat.c: Include "auxv.h" and "elf/common.h".
f1648876 4811 Define PPC_FEATURE_BOOKE.
b7622095
LM
4812 (ppc_linux_get_hwcap): New function.
4813 (ppc_linux_region_ok_for_hw_watchpoint): Handle PowerPC 440
4814 4-bytes alignment restrictions.
4815 (ppc_linux_insert_watchpoint): Handle PowerPC 440-specific
4816 positioning of the read/write flags.
4817 (ppc_linux_watchpoint_addr_within_range): Handle PowerPC 440
4818 4-bytes alignment.
4819
2dc38344
PA
48202008-08-08 Pedro Alves <pedro@codesourcery.com>
4821
4822 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
4823
4824 * win32-nat.c (win32_add_thread): Change thread argument type to
4825 ptid_t. Adjust.
4826 (win32_add_thread): Adjust.
4827 (win32_delete_thread): Change thread argument type to ptid_t.
4828 Adjust.
4829 (win32_fetch_inferior_registers, win32_store_inferior_registers)
4830 (win32_resume, get_win32_debug_event, get_win32_debug_event)
4831 (win32_wait, win32_pid_to_exec_file, win32_pid_to_str): Adjust.
4832 (init_win32_ops): Put to_magic last.
4833 (win32_win32_thread_alive): Adjust.
4834
4d6c6261
PA
48352008-08-08 Pedro Alves <pedro@codesourcery.com>
4836
4837 * remote-m32r-sdi.c (m32r_thread_alive, m32r_pid_to_str): New.
4838 (init_m32r_ops): Register m32r_thread_alive and m32r_pid_to_str.
4839
e5ef4d75
PA
48402008-08-08 Pedro Alves <pedro@codesourcery.com>
4841
4842 * remote-m32r-sdi.c: Include "gdbthread.h".
4843 (remote_m32r_ptid): New.
4844 (m32r_close): Delete the main thread.
4845 (m32r_resume): Set inferior_ptid toA remote_m32r_ptid. Add the
4846 main thread.
4847 (m32r_kill, m32r_load, sdireset_command): Delete the main thread.
4848 (_initialize_remote_m32r): Initialize remote_m32r_ptid.
4849
a417dc56
RW
48502008-08-07 Tom Tromey <tromey@redhat.com>
4851 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4852
4853 * aclocal.m4, configure: Rebuild.
4854 * configure.in: Call ZW_CREATE_DEPDIR,
4855 ZW_PROG_COMPILER_DEPENDENCIES, AC_PROG_MAKE_SET.
4856 (MAKE, GMAKE): New substs.
4857 * acinclude.m4: Include depstand.m4.
4858 * Makefile.in (DEPMODE, DEPDIR, COMPILE.post, COMPILE.pre,
4859 COMPILE, POSTCOMPILE, depcomp): New variables.
4860 Remove all _h variables.
4861 Remove many .o targets.
4862 ($(srcdir)/copying.c): avoid backslash-newline after comment
4863 sign (@maintainer_mode_true@).
4864 (HFILES_NO_SRCDIR): Regenerate.
4865 (generated_files): New variable.
4866 (all_gdbtk_cflags): Likewise.
4867 (.c.o): Rewrote.
4868 (init.o, version.o, copying.o): Remove.
4869 (distclean): Remove DEPDIR.
4870 (test-cp-name-parser.o, hpux-thread.o, main.o, monitor.o,
4871 printcmd.o, procfs.o, v850ice.o): Rewrite.
4872 (cli-cmds.o, cli-decode.o, cli-dump.o, cli-interp.o, cli-logging.o,
4873 cli-script.o, cli-setshow.o, cli-utils.o): Likewise.
4874 (gdbtk.o, gdbtk-bp.o, gdbtk-cmds.o, gdbtk-hooks.o, gdbtk-interp.o,
4875 gdbtk-main.o, gdbtk-register.o, gdbtk-stack.o, gdbtk-varobj.o,
4876 gdbtk-wrapper.o): Likewise.
4877 (mi-cmd-break.o, mi-cmd-disas.o, mi-cmd-env.o, mi-cmd-file.o,
4878 mi-cmds.o, mi-cmd-stack.o, mi-cmd-target.o, mi-cmd-var.o,
4879 mi-console.o, mi-getopt.o, mi-interp.o, mi-main.o, mi-out.o,
4880 mi-parse.o, mi-symbol-cmds.o, mi-common.o, signals.o, tui.o,
4881 tui-command.o, tui-data.o, tui-disasm.o, tui-file.o, tui-hooks.o,
4882 tui-interp.o, tui-io.o, tui-layout.o, tui-main.o, tui-out.o,
4883 tui-regs.o, tui-source.o, tui-stack.o, tui-win.o, tui-windata.o,
4884 tui-wingeneral.o, tui-winsource.o): Likewise.
4885 (all_object_files): New variable.
4886 ($(all_object_files)): New target.
4887 Include dependency files, when using GNU Make.
4888
12ab8a60
UW
48892008-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4890
4891 * spu-tdep.c (info_spu_dma_cmdlist): Only show entries with
4892 the valid bit set. Ensure display order respects partial
4893 order defined by dependency bits.
4894
6536cc32
DA
48952008-08-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4896
4897 * solib-pa64.c (read_dld_descriptor): Return zero if load map is not
4898 setup.
4899
f73a15e4
MK
49002008-08-06 Mark Kettenis <kettenis@gnu.org>
4901
4902 * i386obsd-nat.c (i386obsd_supply_pcb): Adjust for changes in
4903 OpenBSD 4.3.
4904
d57a3c85
TJB
49052008-08-06 Vladimir Prus <vladimir@codesourcery.com>
4906 Tom Tromey <tromey@redhat.com>
4907 Thiago Jung Bauermann <bauerman@br.ibm.com>
4908 Doug Evans <dje@google.com>
4909
4910 * Makefile.in (SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS,
4911 SUBDIR_PYTHON_DEPS, SUBDIR_PYTHON_LDFLAGS, SUBDIR_PYTHON_CFLAGS,
4912 PYTHON_CFLAGS): New.
4913 (python_h, python_internal_h): New.
4914 (cli-script.o): Depend on python.h
4915 (python.o, python-utils.o): New.
4916 * cli/cli-script.c (print_command_lines): Handle python_control.
4917 (execute_control_command): Handle python_control.
4918 (execute_control_command_untraced): New function.
4919 (while_command): Call execute_control_command_untraced.
4920 (if_command): Likewise.
4921 (get_command_line): Remove static attribute.
4922 (read_next_line): Handle "python".
4923 (recurse_read_control_structure): Handle python_control.
4924 (read_command_lines): Handle python_control.
4925 Include python.h.
4926 * cli/cli-script.h (get_command_line): Add prototype.
4927 (execute_control_command_untraced): Likewise.
4928 * configure.ac: Add --with-python.
4929 * defs.h (enum command_control_type) <python_control>: New
4930 constant.
4931 * python/python-internal.h: New file.
4932 * python/python.c: New file.
4933 * python/python.h: New file.
4934 * python/python-utils.c: New file.
4935 * NEWS: Mention Python scripting support and its new commands.
4936
5141027d
UW
49372008-08-06 Ulrich Weigand <uweigand@de.ibm.com>
4938
4939 * spu-tdep.c (spu_gdbarch_init): Call set_gdbarch_frame_red_zone_size.
4940
353cfe88
PM
49412008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4942
f1648876 4943 * MAINTAINERS (Write After Approval): Add self.
353cfe88 4944
d6b74ac4
PM
49452008-08-06 Phil Muldoon <pmuldoon@redhat.com>
4946
4947 * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
4948 (insert_breakpoint_locations): Likewise.
4949
ef0d312a
MS
49502008-08-05 Phil Muldoon <pmuldoon@redhat.com>
4951
4952 * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
4953 breakpoint.
4954 (set_longjmp_breakpoint): Likewise.
4955
fb6d93b2
UW
49562008-08-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4957
4958 PR build/2490
4959 * solib-pa64.c: Only compile if both HAVE_ELF_HP_H and __LP64__ are
4960 defined.
4961
e6ad058a
TT
49622008-08-05 Tom Tromey <tromey@redhat.com>
4963
4964 * bcache.c (deprecated_bcache_added): Initialize obstack.
4965 (bcache_xmalloc): Don't initialize obstack.
4966 (bcache_xfree): Conditionally free obstack.
4967 (bcache_memory_used): Update.
4968
11d31d94
TT
49692008-08-05 Tom Tromey <tromey@redhat.com>
4970
4971 * symfile.c (add_psymbol_to_bcache): Return a const pointer. Use
4972 bcache_full.
4973 (append_psymbol_to_list): Accept a const pointer.
4974 (add_psymbol_to_list): Fix const correctness.
4975 * bcache.h: (deprecated_bcache_added, deprecated_bcache): Remove.
4976 (bcache_full): Declare.
4977 * bcache.c (bcache_data, deprecated_bcache): Remove.
4978 (bcache): Use bcache_full.
4979 (bcache_full): Rename from deprecated_bcache_added. Change return
4980 type.
4981
5be973eb
SS
49822008-08-04 Stan Shebs <stan@codesourcery.com>
4983
4984 * solib-svr4.c (BKPT_AT_SYMBOL): Remove, always defined.
4985 (bkpt_names): Remove SOLIB_BKPT_NAME, never defined.
4986 (enable_break): Remove test of BKPT_AT_SYMBOL.
4987
5062cc19
KS
49882008-08-02 Keith Seitz <keiths@redhat.com>
4989
4990 * acinclude.m4: Include ../config/tcl.m4 to pick up
4991 standard Tcl configury bits.
4992 Remove all Tcl, Tk, Itcl, Itk, etc definitions.
4993 * configure.ac: Don't check if ../itcl exists when building
4994 gdbtk. It could be installed.
4995 Rewrite gdbtk configury to allow for using system-supplied
f1648876 4996 Tcl and Tk. Gdbtk no longer requires build-time access to
5062cc19
KS
4997 itcl and itk.
4998 * Makefile.in: Remove everything related to itcl and itk.
4999 Rewrite the Tcl bits for gdbtk to correspond to rewrite of
5000 configure.ac.
5001 Remove v850ice.o build rule.
5002 (ALL_TCL_CFLAGS): New convenience defintion. Change all
5003 gdbtk sources to use it.
5004 * configure: Regenerate.
f1648876 5005
6d76a53d
SS
50062008-07-31 Stan Shebs <stan@codesourcery.com>
5007
5008 * coffread.c (coff_symtab_read): Remove FUNCTION_EPILOGUE_SIZE.
5009
ed7c5e43
SS
50102008-07-30 Stan Shebs <stan@codesourcery.com>
5011
5012 * objfiles.c (TARGET_KEEP_SECTION): Remove.
5013 (add_to_objfile_sections): Remove use.
5014
22ad7fee
TT
50152008-07-29 Tom Tromey <tromey@redhat.com>
5016
5017 * cli/cli-decode.c (lookup_cmd_1): Use memcpy.
5018 (lookup_cmd_composition): Likewise.
5019
d5529a84
TT
50202008-07-29 Tom Tromey <tromey@redhat.com>
5021
5022 * cli/cli-cmds.c (edit_command): Remove unused variables. Delete
5023 dead code. Fix indentation.
5024
938f4ca8
SS
50252008-07-29 Stan Shebs <stan@codesourcery.com>
5026
5027 * main.c (captured_main): Remove long-unused #if 0 blocks.
5028
7f4b89d1
TT
50292008-07-28 Tom Tromey <tromey@redhat.com>
5030
5031 * annotate.h (deprecated_annotate_starting_hook): Remove.
5032 (deprecated_annotate_stopped_hook): Remove.
5033 (deprecated_annotate_exited_hook): Remove.
5034 * Makefile.in (annotate.o): Depend on observer_h.
5035 * top.c (deprecated_delete_breakpoint_hook): Remove.
5036 (deprecated_create_breakpoint_hook): Likewise.
5037 (deprecated_modify_breakpoint_hook): Likewise.
5038 * interps.c (clear_interpreter_hooks): Update for removed hooks.
5039 * breakpoint.c (mention): Don't call removed hook.
5040 (delete_breakpoint): Likewise.
5041 (disable_breakpoint): Likewise.
5042 (do_enable_breakpoint): Likewise.
5043 * annotate.c: Include observer.h.
5044 (breakpoint_changed): Change type of argument.
5045 (_initialize_annotate): Register observers.
5046 (deprecated_annotate_starting_hook): Remove.
5047 (deprecated_annotate_stopped_hook): Remove.
5048 (deprecated_annotate_exited_hook): Remove.
5049 (annotate_starting): Update for hook removal.
5050 (annotate_stopped): Likewise.
5051 (annotate_exited): Likewise.
5052 * defs.h (deprecated_delete_breakpoint_hook): Remove.
5053 (deprecated_create_breakpoint_hook): Likewise.
5054 (deprecated_modify_breakpoint_hook): Likewise.
5055
8641e682
TT
50562008-07-28 Tom Tromey <tromey@redhat.com>
5057
5058 * main.c (captured_main): Don't use BEFORE_MAIN_LOOP_HOOK.
5059
064ef605
DJ
50602008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5061
5062 * configure.ac: Check for the GNU/Linux ptrace signature.
5063 * configure: Regenerated.
5064
57380f4e
DJ
50652008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5066
5067 * linux-nat.c (resume_callback): Add more debugging output.
5068 (linux_nat_has_pending_sigint): New function, based on
5069 linux_nat_has_pending.
5070 (set_ignore_sigint, maybe_clear_ignore_sigint): New functions.
5071 (stop_wait_callback): Remove flush_mask handling. Honor
5072 ignore_sigint. Call maybe_clear_ignore_sigint. Pass NULL
5073 to recursive calls.
5074 (linux_nat_has_pending, flush_callback): Remove.
5075 (linux_nat_filter_event): Check for ignore_sigint.
5076 (linux_nat_wait): Remove flush_mask support and call to
5077 flush_callback. Use set_ignore_sigint and maybe_clear_ignore_sigint.
5078 * linux-nat.h (struct lwp_info): Add ignore_sigint field.
5079
e09490f1
DJ
50802008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5081
5082 * linux-nat.c (count_events_callback, select_event_lwp_callback): Only
5083 report events from resumed threads.
5084
e38d4e1a
DJ
50852008-07-27 Daniel Jacobowitz <dan@codesourcery.com>
5086
5087 * mips-linux-tdep.c (mips_linux_syscall_next_pc): New function.
5088 (mips_linux_init_abi): Set tdep->syscall_next_pc.
5089 * mips-tdep.c (enum mips_fpu_type, struct gdbarch_tdep): Move to
5090 mips-tdep.h.
5091 (mips32_next_pc): Handle the syscall instruction.
5092 * mips-tdep.h (enum mips_fpu_type, struct gdbarch_tdep): New,
5093 from mips-tdep.c. Add syscall_next_pc to gdbarch_tdep.
5094
fa8de41e
TT
50952008-07-26 Tom Tromey <tromey@redhat.com>
5096
5097 PR gdb/1158:
5098 * valops.c (value_struct_elt): Treat function-valued field as a
5099 static method.
5100
ccb3ac8a
TT
51012008-07-26 Tom Tromey <tromey@redhat.com>
5102
5103 PR gdb/1136:
5104 * macroexp.c (get_punctuator) <punctuators>: Rearrange to put
5105 longer tokens first.
5106
d72314c6
VP
51072008-07-26 Vladimir Prus <vladimir@codesourcery.com>
5108
5109 Kill cmd_async_ok.
f1648876
AS
5110 * cli/cli-decode.h (CMD_ASYNC_OK, set_cmd_async_ok)
5111 (get_cmd_async_ok): Remove.
5112 * cli/cli-decode.c (set_cmd_async_ok, get_cmd_async_ok): Remove.
5113 * cli/cli-cmds.c (init_cli_cmds): Don't use set_cmd_async_ok.
5114 * infcmd.c (_initialize_infcmd): Likewise.
5115 * thread.c (_initialize_thread): Likewise.
d72314c6 5116
5b68030f
JM
51172008-07-25 Joseph Myers <joseph@codesourcery.com>
5118
5119 * mips-tdep.c (mips_n32n64_push_dummy_call): Handle passing
5120 128-bit long doubles in even-odd pairs of FPRs. Do not
5121 right-align float arguments for big-endian.
5122 (mips_n32n64_return_value): Apply return value convention for
5123 structs containing one or two floating-point values to soft-float
5124 as well as hard-float. Handle 128-bit long doubles in such
5125 structs.
5126 (mips_o32_push_dummy_call): Only skip one integer register for a
5127 float argument passed in an FPR.
5128
383f836e
TT
51292008-07-25 Tom Tromey <tromey@redhat.com>
5130
5131 * tui/tui-hooks.c: Include observer.h.
5132 (tui_event_default, tui_old_event_hooks, tui_event_hooks):
5133 Remove.
5134 (tui_bp_created_observer, tui_bp_deleted_observer,
5135 tui_bp_modified_observer): New globals.
5136 (tui_install_hooks): Use observers, not events.
5137 (tui_remove_hooks): Likewise.
5138 * mi/mi-cmd-break.c: Include observer.h, not gdb-events.h.
5139 (mi_breakpoint_observers_installed, mi_can_breakpoint_notify): New
5140 globals.
5141 (breakpoint_notify): Check mi_can_breakpoint_notify.
5142 (breakpoint_hooks): Remove.
5143 (mi_cmd_break_insert): Attach observers. Don't use events.
5144 * tracepoint.c: Include observer.h, not gdb-events.h.
5145 (tracepoint_operation, trace_pass_command): Notify observer.
5146 * interps.c: Don't include gdb-events.h.
5147 (clear_interpreter_hooks): Don't call clear_gdb_event_hooks.
5148 * gdbarch.c: Rebuild.
5149 * gdbarch.sh: Emit include for observer.h, not gdb-events.h.
5150 (deprecated_current_gdbarch_select_hack): Notify observer.
5151 * breakpoint.h: Don't include gdb-events.h.
5152 * breakpoint.c: Don't include gdb-events.h.
5153 (condition_command): Notify observer.
5154 (commands_command): Likewise.
5155 (commands_from_control_command): Likewise.
5156 (mention, delete_breakpoint, set_ignore_count): Likewise.
5157 (disable_breakpoint, do_enable_breakpoint): Likewise.
5158 * Makefile.in (gdb_events_h): Remove.
5159 (breakpoint_h): Update.
5160 (COMMON_OBS): Remove gdb-events.o.
5161 (gdb-events.o): Remove.
5162 (breakpoint.o, gdbarch.o, interps.o, tracepoint.o, gdbtk-bp.o,
5163 gdbtk-hooks.o, mi-cmd-break.o, tui-hooks.o): Update.
5164 * gdb-events.c: Remove.
5165 * gdb-events.h: Remove.
5166 * gdb-events.sh: Remove.
5167
60e569b9
PA
51682008-07-24 Pedro Alves <pedro@codesourcery.com>
5169
5170 * remote.c (remote_threads_extra_info): Don't query the remote
5171 server about info on the internally added main thread.
5172
a6a7f2a5
AR
51732008-07-24 Aleksandar Ristovski <aristovski@qnx.com>
5174
5175 * nto-procfs.c (procfs_attach): Populate initial thread list.
5176 (procfs_wait): Return new pid, built from the inferior status.
5177
e63e4db2
TJB
51782008-07-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
5179
5180 * configure.ac (CONFIG_INITS): Delete long obsoleted variable.
5181 * configure: Regenerate.
5182
14ef7606
AR
51832008-07-23 Aleksandar Ristovski <aristovski@qnx.com>
5184
5185 * nto-procfs.c (procfs_xfer_memory): Changed signature.
5186 (procfs_resume): Workaround for dereferencing type-punned pointer
5187 warning.
f1648876 5188 * nto-tdep.c (nto_parse_redirection): Change signature to be const
14ef7606
AR
5189 correct.
5190 * nto-tdep.h (nto_parse_redirection): Likewise.
5191
cfd8ab24
SS
51922008-07-21 Stan Shebs <stan@codesourcery.com>
5193
5194 Scrub remnants of IN_SOLIB_DYNSYM_RESOLVE_CODE.
5195 * gdbarch.sh: Adjust comment to refer to
5196 in_solib_dynsym_resolve_code().
5197 * gdbarch.h, gdbarch.c: Update.
5198 * solib-osf.c: Ditto.
5199 * infrun.c: Ditto.
5200 (handle_inferior_event): Use in_solib_dynsym_resolve_code
5201 unconditionally.
5202 * config/mips/nm-irix5.h: Remove undef of
5203 IN_SOLIB_DYNSYM_RESOLVE_CODE.
5204
781b42b0
TT
52052008-07-21 Tom Tromey <tromey@redhat.com>
5206
5207 * symfile.c (reread_symbols): Don't pass argument to observer.
5208 * exec.c (exec_file_attach): Don't pass argument to observer.
5209 * ada-lang.c (ada_executable_changed_observer): Remove argument.
5210 * symtab.c (symtab_observer_executable_changed): Remove argument.
5211 * observer.sh: Handle functions with no arguments.
5212
a366c65a 52132008-07-20 Sergei Poselenov <sposelenov@emcraft.com>
f1648876 5214 Chris Demetriou <cgd@google.com>
a366c65a
CD
5215
5216 * elfread.c (elf_symfile_segments): Fix the check that each loadable
5217 section fits within an ELF segment to handle ELF segments that hit
5218 the end of the address space.
5219
073d253f
CD
52202008-07-20 Chris Demetriou <cgd@google.com>
5221
5222 * MAINTAINERS (Write After Approval): Add self.
5223
d7d9f01e
TT
52242008-07-18 Tom Tromey <tromey@redhat.com>
5225
5226 PR gdb/855:
5227 * NEWS: Add entry for macro commands.
5228 * Makefile.in (macrocmd.o): Add gdb_string.h.
5229 * macroscope.h (user_macro_scope): Declare.
5230 (default_macro_scope): Update documentation.
5231 (macro_user_macros): Declare.
5232 * c-lang.c (c_preprocess_and_parse): Always attempt macro lookup.
5233 Use user_macro_scope.
5234 (null_macro_lookup): Remove.
5235 * macrotab.h (macro_callback_fn): Declare.
5236 (macro_for_each): Likewise.
5237 (macro_allow_redefinitions): Likewise.
5238 * macrotab.c (foreach_macro): New function
5239 (macro_for_each): Likewise.
5240 (struct macro_table) <redef_ok>: New field.
5241 (macro_allow_redefinitions): New function.
5242 (new_macro_table): Update.
5243 (macro_define_function): Likewise.
5244 (macro_define_object): Likewise.
5245 * macroscope.c (user_macro_scope): New function.
5246 (default_macro_scope): Use it.
5247 (macro_user_macros): New global.
5248 (standard_macro_lookup): Look in macro_user_macros.
5249 (_initialize_macroscope): New function.
5250 * macroexp.h (macro_is_whitespace, macro_is_digit,
5251 macro_is_identifier_nondigit): Declare.
5252 * macroexp.c (macro_is_whitespace): Rename. No longer static.
5253 (macro_is_digit): Likewise.
5254 (macro_is_identifier_nondigit): Likewise.
5255 (get_identifier): Update.
5256 (get_pp_number): Likewise.
5257 (get_token): Likewise.
5258 * macrocmd.c (skip_ws): New function.
5259 (extract_identifier): Likewise.
5260 (free_macro_definition_ptr): Likewise.
5261 (user_macros): Remove.
5262 (macro_define_command): Implement.
5263 (_initialize_macrocmd): Update.
5264 (macro_undef_command): Implement.
5265 (print_one_macro): New function.
5266 (macro_list_command): Implement.
5267
0f72fb1c
JM
52682008-07-18 Joseph Myers <joseph@codesourcery.com>
5269
5270 * configure.ac: Put old value of $LIBS after -lbfd -liberty $intl
5271 in BFD ELF check.
5272 * configure: Regenerate.
5273
7c6467a4
PP
52742008-07-17 Paul Pluzhnikov <ppluzhnikov@google.com>
5275
5276 * auxv.c (fprint_target_auxv): Stop at AT_NULL.
5277
680b56ce
AS
52782008-07-15 Andreas Schwab <schwab@suse.de>
5279
5280 * valops.c (value_cast_pointers): Follow typedefs when checking
5281 result of coercion.
5282
7f0df278
DJ
52832008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5284
5285 * block.c (block_function): Renamed to ...
5286 (block_linkage_function): ... this. All callers changed.
5287 * block.h (block_function): Renamed to ...
5288 (block_linkage_function): ... this.
5289
ba2c6aec
DJ
52902008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5291
5292 * mn10300-tdep.c (set_reg_offsets): Use get_frame_register_unsigned.
5293
d56907c1
DJ
52942008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5295
5296 * frame.c (frame_sp_unwind): Delete.
5297 (get_frame_sp): Do not use it.
5298 * frame.h (frame_sp_unwind): Delete prototype.
5299
f92aeb88
DJ
53002008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5301
5302 * ia64-tdep.c (ia64_dummy_id): Use get_frame_pc.
5303
ad1193e7
DJ
53042008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5305
5306 * dwarf2-frame.c (dwarf2_frame_cache): Update comment.
5307 * frame.c (frame_unwind_address_in_block): Delete.
5308 (get_frame_address_in_block): Do not use it. Check the type
5309 of the next frame first.
5310 (frame_cleanup_after_sniffer): Update comment.
5311 * frame.h (frame_unwind_address_in_block): Delete prototype.
5312 * hppa-tdep.c (hppa_find_unwind_entry_in_block): Update comment.
5313
ef02daa9
DJ
53142008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5315
5316 * frame.c (frame_func_unwind): Delete.
5317 (get_frame_func): Do not use it.
5318 * frame.h (frame_func_unwind): Delete prototype.
5319 * hppa-tdep.c (hppa_frame_cache): Update comment.
5320 * rs6000-tdep.c (rs6000_frame_cache): Update comment.
5321
96e32df8
SS
53222008-07-14 Stan Shebs <stan@codesourcery.com>
5323
5324 * remote-sim.c (init_gdbsim_ops): Remove
5325 TARGET_REDEFINE_DEFAULT_OPS.
5326
ab8650a3
DJ
53272008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
5328
5329 * findvar.c (read_var_value): Remove unused variable.
5330
8c90c137
LM
53312008-07-15 Luis Machado <luisgpm@br.ibm.com>
5332
5333 * infrun.c (handle_inferior_event): Tag threads as stopped
5334 before inserting breakpoints.
5335
4098af0f
HZ
53362008-07-15 Hui Zhu <teawater@gmail.com>
5337
5338 * MAINTAINERS: Added myself to section Write After Approval.
5339
7093c834
PP
53402008-07-14 Paul Pluzhnikov <ppluzhnikov@google.com>
5341
5342 PR gdb/2477
5343 * cp-abi.c (value_virtual_fn_field): Handle invalid pointers.
680b56ce 5344
56514771
PA
53452008-07-14 Pedro Alves <pedro@codesourcery.com>
5346
5347 * i386-dicos-tdep.c (i386_dicos_frame_align): Delete.
5348 (i386_dicos_push_dummy_code): New.
5349 (i386_dicos_init_abi): Don't register i386_dicos_frame_align.
5350 Register i386_dicos_push_dummy_code.
5351
74ed0bb4
MD
53522008-07-14 Markus Deuling <deuling@de.ibm.com>
5353
5354 * mips-tdep.c (fp_register_arg_p): Add gdbarch as paramter.
5355 (mips_n32n64_push_dummy_call, mips_o64_return_value)
5356 (mips_eabi_push_dummy_call): Update call to fp_register_arg_p.
5357
5358 (MIPS_FPU_TYPE): Add gdbarch as parameter and replace current_gdbarch.
5359 (fp_register_arg_p, mips_dump_tdep, show_mipsfpu_command)
5360 (mips_n32n64_fp_arg_chunk_p): Update caller.
5361
5362 (mips_n32n64_fp_arg_chunk_p): Add gdbarch as paramter.
5363 (mips_n32n64_push_dummy_call): Update caller.
5364
5365 (MIPS_LAST_ARG_REGNUM): Add gdbarch as parameter and replace
5366 current_gdbarch.
5367 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
5368 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update caller.
5369
5370
5371 (MIPS_LAST_FP_ARG_REGNUM): Add gdbarch as parameter and replace
5372 current_gdbarch.
5373 (mips_eabi_push_dummy_call, mips_o32_push_dummy_call)
5374 (mips_o64_push_dummy_call): Update caller.
5375
5376 (MIPS_EABI): Add gdbarch as parameter and replace current_gdbarch.
5377 (fp_register_arg_p, mips_dump_tdep): Update caller.
5378
5379 (set_reg_offset): Add gdbarch as parameter and replace current_gdbarch.
5380 (mips16_scan_prologue, mips32_scan_prologue): Update caller.
5381
5382 (reset_saved_regs): Make static. Add gdbarch as parameter. Replace
5383 current_gdbarch.
5384 (mips32_scan_prologue): Update caller.
5385
5386 (heuristic_proc_start): Add gdbarch as parameter. Replace
5387 current_gdbarch.
5388 (mips_insn16_frame_cache, mips_insn32_frame_cache): Update caller.
5389
5390 * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
5391 (mipsnbsd_store_inferior_registers): Use get_regcache_arch to get at
5392 the current architecture. Update call to getregs_supplies.
5393 (getregs_supplies): Add gdbarch as parameter and replace
5394 current_gdbarch.
5395
5396 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use get_frame_arch to
5397 get at the current architecture. Update call to NBSD_MIPS_JB_OFFSET and
5398 NBSD_MIPS_JB_ELEMENT_SIZE.
5399 (NBSD_MIPS_JB_ELEMENT_SIZE, NBSD_MIPS_JB_OFFSET): Add gdbarch and
5400 replace current_gdbarch.
5401
5402 * remote-mips.c (mips_map_regno): Add gdbarch as parameter and replace
5403 current_gdbarch.
5404 (mips_fetch_registers, mips_store_registers): Update call
5405 to mips_map_regno.
5406 (mips_load): Use get_regcache_arch to get at the current_architecture
5407 and replace current_gdbarch.
5408
0c501536
PA
54092008-07-13 Pedro Alves <pedro@codesourcery.com>
5410
5411 * thread.c (restore_selected_frame): On fail to restore, select
5412 the innermost frame, and don't crash when warning the user.
5413
db009c8a
JB
54142008-07-13 Hui Zhu <teawater@gmail.com>
5415
5416 * symtab.c (expand_line_sal): Fix a memory leak.
5417
0ffe5012
PA
54182008-07-13 Pedro Alves <pedro@codesourcery.com>
5419
5420 * utils.c (struct continuation): Define as inheriting struct
5421 cleanup.
5422 (add_continuation, do_all_continuations)
5423 (discard_all_continuations, add_intermediate_continuation)
5424 (do_all_intermediate_continuations)
5425 (discard_all_intermediate_continuations): Adjust.
5426
dbba8251
VP
54272008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5428
5429 Skip varobj in running threads.
680b56ce
AS
5430 * mi/mi-cmd-var.c (mi_cmd_var_update): If varobj's
5431 thread is not stopped, skip the varobj.
5432 * Makefile.in: Update dependencies.
dbba8251 5433
e3d6cd5f
VP
54342008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5435
5436 Enable all commands while inferiour is running
680b56ce
AS
5437 * mi/mi-main.c (mi_cmd_execute): Don't check if
5438 inferiour is executing.
e3d6cd5f 5439
b10a37b1
VP
54402008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5441
5442 Allow all CLI command even if target is executing.
680b56ce
AS
5443 * gdb/top.c (execute_command_1): Don't check if the inferiour
5444 is running.
b10a37b1 5445
ea069267
VP
54462008-07-13 Vladimir Prus <vladimir@codesourcery.com>
5447
5448 * mi/mi-main.c (mi_cmd_execute): Remove unused variable.
5449 Fix printing of frame, when frame is wrong.
5450
cdc9523a
UW
54512008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5452
5453 * spu-tdep.c (spu_frame_unwind_cache): Do not error if
5454 backchain is unreadable.
5455
d5b25491
UW
54562008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
5457
5458 * spu-linux-nat.c: Include "gdbthread.h".
5459 (spu_child_post_startup_inferior): Register main thread.
5460 (spu_child_post_attach): Likewise.
5461 * Makefile.in (spu-linux-nat.o): Update dependencies.
5462
604ead4a
PA
54632008-07-12 Pedro Alves <pedro@codesourcery.com>
5464
5465 Rewrite continuations internals on top of cleanups and plug
5466 continuation arguments leaks.
5467
5468 * defs.h (struct continuation): Make it opaque.
5469 (add_continuation, add_intermediate_continuation): Drop the int
5470 argument of the continuation hook argument. Add
5471 continuation_free_args argument.
5472 (do_all_continuations, do_all_intermediate_continuations): Drop
5473 the error_p argument.
5474
5475 * utils.c (add_continuation): Drop the int argument of the
5476 continuation hook argument. Add continuation_free_args argument.
5477 Reimplement on top of cleanups.
5478 (do_all_continuations): Drop error argument. Reimplement on top
5479 of cleanups.
5480 (discard_all_continuations): Reimplement on top of cleanups.
5481 (add_intermediate_continuation): Drop the int argument of the
5482 continuation hook argument. Add continuation_free_args argument.
5483 Reimplement on top of cleanups.
5484 (do_all_intermediate_continuations): Drop error argument.
5485 Reimplement on top of cleanups.
5486 (discard_all_intermediate_continuations): Reimplement on top of
5487 cleanups.
5488
5489 * breakpoint.c (until_break_command_continuation): Drop error
5490 argument. Add xfree as continuation argument deleter.
5491
5492 * inf-loop.c (inferior_event_handler): On error, discard all
5493 continuations. Adjust to new do_all_intermediate_continuations
5494 and do_all_continuations interfaces.
5495
5496 * infcmd.c (step_1_continuation): Drop error_p argument. Adjust.
5497 Pass xfree as continuation argument deleter.
5498 (finish_command_continuation): Drop error_p argument. Adjust.
5499 (finish_command_continuation_free_arg): New.
5500 (finish_command): Pass finish_command_continuation_free_arg as
5501 continuation argument deleter. Adjust to new do_all_continuations
5502 interfaces.
5503 (attach_command_continuation): Drop error_p argument.
5504 (attach_command_continuation_free_args): New.
5505 (attach_command): Pass attach_command_continuation_free_args as
5506 continuation argument deleter.
5507
5508 * interps.c (interp_set): Adjust to new do_all_continuations
5509 interfaces.
5510
5511 * event-top.c (stdin_event_handler): In error, also discard the
5512 intermediate continuations.
5513
bfec99b2
PA
55142008-07-12 Pedro Alves <pedro@codesourcery.com>
5515
5516 Replace struct continuation_args by void* and per command structs.
5517
5518 * top.c (execute_command): Remove unused arg1 and arg2 locals.
5519
5520 * breakpoint.c (struct until_break_command_continuation_args):
5521 New.
5522 (until_break_command_continuation): Take a void* instead of a
5523 continuations_arg. Adjust.
5524 (until_break_command): Adjust to use struct
5525 until_break_command_continuation_args instead of struct
5526 continuation_arg.
5527
5528 * infcmd.c (struct step_1_continuation_args): New.
5529 (step_1_continuation): Take a void* instead of a
5530 continuations_arg. Adjust to use struct step_1_continuation_args.
5531 (step_once): Adjust to use struct step_1_continuation_args.
5532
5533 (struct finish_command_continuation_args): New.
5534 (finish_command_continuation): Take a void* instead of a
5535 continuations_arg. Adjust to use struct
5536 finish_command_continuation_args.
5537 (finish_command): Adjust to use struct
5538 finish_command_continuation_args.
5539 (struct attach_command_continuation_args): New.
5540 (attach_command_continuation): Take a void* instead of a
5541 continuations_arg. Adjust to use struct
5542 attach_command_continuation_args.
5543 (attach_command): Adjust to use struct
5544 attach_command_continuation_args.
5545
5546 * defs.h (struct continuation_arg): Delete.
5547 (struct continuation): Replace the struct continuation_arg*
5548 parameter of continuation_hook by a void*. Replace "arg_list"
5549 member by a new "args" member with void* type.
5550 (add_continuation, add_intermediate_continuation): Replace struct
5551 continuation_arg type usages by void* usages.
5552
5553 * utils.c (add_continuation, do_all_continuations)
5554 (add_intermediate_continuation)
5555 (do_all_intermediate_continuations): Replace struct
5556 continuation_arg type usages by void* usages. Pass "args" instead
5557 of "arg_list".
5558
2afb61aa
PA
55592008-07-12 Pedro Alves <pedro@codesourcery.com>
5560
5561 * infrun.c (struct thread_stepping_state): Delete sal member.
5562 (init_thread_stepping_state): Add local sal. Use it instead of
5563 tss->sal.
5564 (handle_inferior_event): New local stop_pc_sal. Use it instead of
5565 tss->sal.
5566 (step_into_function): Add local stop_func_sal. Use it instead of
5567 tss->sal.
5568
77ebaa5a
VP
55692008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5570
5571 Implement -exec-continue/-exec-interrupt --all.
680b56ce
AS
5572 * infcmd.c (continue_1): New, extracted from
5573 (continue_command): ...here.
5574 (interrupt_target_1): New, extracted from
5575 (interrupt_target_command): ...here.
5576 * inferior.h (continue_1, interrupt_target_1): New.
5577 * mi/mi-main.c (mi_cmd_exec_continue)
5578 (mi_cmd_exec_interrupt): Handle --all.
77ebaa5a 5579
1e92afda
VP
55802008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5581
5582 Implement --thread and --frame.
5583 * gdbthread.h (find_thread_id): Declare.
680b56ce
AS
5584 * thread.c (find_thread_id): Make non-static.
5585 * mi/mi-main.c (mi_cmd_execute): Switch to the right
5586 thread and frame, if necessary.
5587 * mi/mi-parse.c (mi_parse): Handle --thread and --frame.
5588 * mi/mi-parse.h (strcut mi_parse): New fields thread and frame.
1e92afda 5589
d56b7306
VP
55902008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5591
5592 * infrun.c (resume): Discard cleanups on early exit path.
5593
b1a268e5
VP
55942008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5595
680b56ce 5596 * infrun.c (normal_stop): For MI, report which threads
b1a268e5
VP
5597 were stopped.
5598
90139f7d
VP
55992008-07-12 Vladimir Prus <vladimir@codesourcery.com>
5600
5601 Report thread state in -thread-info output.
680b56ce 5602 * thread.c (print_thread_info): Add new field "state".
90139f7d 5603
a0d21d28
PA
56042008-07-11 Pedro Alves <pedro@codesourcery.com>
5605
5606 * infrun.c (handle_inferior_event): Also ignore a
5607 TARGET_SIGNAL_TRAP on a STOP_QUIETLY_NO_SIGSTOP.
5608
14032a66
TT
56092008-07-11 Tom Tromey <tromey@redhat.com>
5610
5611 * completer.c (complete_line_internal): New function, from
5612 complete_line. Add 'for_help' parameter.
5613 (complete_line): Use it.
5614 (command_completer): Move later. Rewrite.
5615
65fc9b77
PA
56162008-07-11 Pedro Alves <pedro@codesourcery.com>
5617
5618 * thread.c (thread_apply_command): Move making the cleanup out of
5619 the loop.
5620
4f8d22e3
PA
56212008-07-11 Pedro Alves <pedro@codesourcery.com>
5622
5623 Exited threads.
5624
5625 * thread.c (enum thread_state): New.
5626 (thread_state main_thread_running): Delete, in favor of...
5627 (thread_state main_thread_state): ... this. Update throughout.
5628 (clear_thread_inferior_resources): New, split from free_thread.
5629 (free_thread): Call clear_thread_inferior_resources.
5630 (init_thread_list): Set main thread to stopped state.
5631 (add_thread_silent): Take care of PTID reuses.
5632 (delete_thread): If deleting inferior_ptid or a thread with
5633 refcount > 0, mark it as exited, but still keep it in the list.
5634 Only notify of thread exits, if we haven't done so yet.
5635 (iterate_over_threads): Make it safe to delete threads while
5636 iterating over them.
5637 (do_captured_list_thread_ids): Don't account for exited threads.
5638 (thread_alive): Check for the THREAD_EXITED state, and don't set
5639 ptid to -1 on exited threads.
5640 (set_running): Update to account for extra possible states.
5641 (is_thread_state): New.
5642 (is_stopped, is_exited): New.
5643 (is_running): Implement in terms of is_thread_state.
5644 (any_running): Update.
5645 (print_thread_info): Update. Account for exited threads. Don't
5646 warn about missed frame restoring here, its done in the cleanup.
5647 (switch_to_thread): Don't read from a thread that has gone.
5648 (restore_current_thread): In non-stop mode, do a full context
5649 switch.
5650 (restore_selected_frame): Add a frame_level argument. Rewrite.
5651 (struct current_thread_cleanup): Add selected_frame_level and
5652 was_stopped members.
5653 (do_restore_current_thread_cleanup): Check if thread was stopped
5654 and still is, and if the target has registers, stack and memory
5655 before restoring the selected frame. Don't delete the cleanup
5656 argument here.
5657 (restore_current_thread_cleanup_dtor): New.
5658 (make_cleanup_restore_current_thread): Remove all arguments.
5659 Rewrite.
5660 (thread_apply_all_command): Update. Prune threads.
5661 (thread_apply_command): Update.
5662 (thread_command): Account for currently selected exited thread.
5663 (do_captured_thread_select): Check for a running thread. Prune
5664 threads.
5665 (_initialize_thread): Make "info threads", "thread", "thread
5666 apply", and "thread apply all" appliable without a selected thread.
5667 * gdbthread.h (struct thread_info): Replace running_ by state_.
5668 Add refcount.
5669 (is_exited, is_stopped): Declare.
5670 (make_cleanup_restore_current_thread): Remove all arguments.
5671 * infrun.c: Include "event-top.h".
5672 (fetch_inferior_event): In non-stop mode, restore selected thread
5673 and frame after handling the event and running breakpoint
5674 commands. Display GDB prompt if needed.
5675 (normal_stop): In non-stop mode, don't print thread switching
5676 notice.
5677 * cli/cli-decode.c (set_cmd_no_selected_thread_ok)
5678 (get_cmd_no_selected_thread_ok): New.
5679 * cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): New.
5680 (set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
5681 Declare.
5682 * cli/cli-cmds.c: Set "pwd", "help", "info", "show" as
5683 no-selected-thread ok.
5684 * top.c (execute_command): Check for non no-selected-thread-ok
5685 commands.
5686 * linux-nat.c (struct saved_ptids, threads_to_delete)
5687 (record_dead_thread, prune_lwps): Delete.
5688 (exit_lwp): Unconditionally delete thread.
5689 (linux_nat_resume): Remove prune_lwps call.
5690 * infcmd.c (proceed_thread_callback): Check if !is_stopped instead
5691 of is_running. Adjust to make_cleanup_restore_current_thread
5692 interface change.
5693 * mi/mi-main.c (mi_cmd_execute): Only allow a few commands if the
5694 selected thread has exited.
5695 * inf-loop.c (inferior_event_handler): Don't display the prompt
5696 here.
5697 * varobj.c (c_value_of_root): Update.
5698 * defs.h (make_cleanup_dtor): Declare.
5699 * utils.c (make_cleanup_dtor): New.
5700
5701 * Makefile.in (infrun.o): Depend on $(event_top_h).
5702
8cae4b3f
PA
57032008-07-11 Pedro Alves <pedro@codesourcery.com>
5704
5705 Add "continue -a" and "interrupt -a" options for non-stop mode.
5706
5707 * infcmd.c (proceed_thread_callback, do_context_switch_to): New.
5708 (continue_command): Add "-a" option.
5709 (interrupt_target_command): Add "-a" option.
5710 (_initialize_infcmd): Add extend help of continue and interrupt
5711 command to mention the new "-a" option. Mark "continue" async ok.
5712
bf250677
DE
57132008-07-10 Doug Evans <dje@google.com>
5714
5715 Add "set print symbol-loading on|off".
5716 * NEWS: Document new option.
5717 * symfile.h (print_symbol_loading): Declare.
5718 * symfile.c (print_symbol_loading): New global.
5719 (symbol_file_add_with_addrs_or_offsets): Only print "Reading symbols
5720 from ..." if print_symbol_loading.
5721 (_initialize_symfile): Add set/show print symbol-loading.
5722 * solib.c (solib_read_symbols): Only print "Loaded symbols for ..."
5723 if print_symbol_loading.
5724
4c28f408
PA
57252008-07-10 Pedro Alves <pedro@codesourcery.com>
5726
5727 Non-stop linux native.
5728
5729 * linux-nat.c (linux_test_for_tracefork): Block events while we're
5730 here.
5731 (get_pending_status): Implement non-stop mode.
5732 (linux_nat_detach): Stop threads before detaching.
5733 (linux_nat_resume): In non-stop mode, always resume only a single
5734 PTID.
5735 (linux_handle_extended_wait): On a clone event, in non-stop mode,
5736 add new lwp to GDB's thread table, and mark as running, executing
5737 and stopped appropriately.
5738 (linux_nat_filter_event): Don't assume there are other running
5739 threads when a thread exits.
5740 (linux_nat_wait): Mark the main thread as running and executing.
5741 In non-stop mode, don't stop all lwps.
5742 (linux_nat_kill): Stop lwps before killing them.
5743 (linux_nat_thread_alive): Use signal 0 to detect if a thread is
5744 alive.
5745 (send_sigint_callback): New.
5746 (linux_nat_stop): New.
5747 (linux_nat_add_target): Set to_stop to linux_nat_stop.
5748
5749 * linux-nat.h (thread_db_attach_lwp): Declare.
5750
5751 * linux-thread-db.c (thread_get_info_callback): Check for new
5752 threads if we have none.
5753 (thread_from_lwp, enable_thread_event): Set proc_handle.pid to the
5754 stopped lwp. Check for new threads if we have none.
5755 (thread_db_attach_lwp): New.
5756 (thread_db_init): Set proc_handle.pid to inferior_ptid.
5757 (check_event): Set proc_handle.pid to the stopped lwp.
5758 (thread_db_find_new_threads): Set proc_handle.pid to any stopped
5759 lwp available, bail out if there is none.
5760
5761 * linux-fork.c (linux_fork_killall): Use SIGKILL instead of
5762 PTRACE_KILL.
5763
0aef6ba2
KB
57642008-07-10 Kevin Buettner <kevinb@redhat.com>
5765
a4fafde3
KB
5766 * rs6000-tdep.c (ppc_displaced_step_fixup): Change type of
5767 `current_pc' from CORE_ADDR to ULONGEST.
5768
0aef6ba2
KB
5769 * remote-sim.c (gdbsim_cntrl_c): Pass remote_sim_ptid to
5770 gdbsim_stop().
5771
10568435
JK
57722008-07-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5773
5774 * NEWS (New commands): Mention "set disable-randomization".
5775 * configure.ac: Add check for HAVE_PERSONALITY and
5776 HAVE_DECL_ADDR_NO_RANDOMIZE.
5777 * configure, config.in: Regenerate.
5778 * linux-nat.c [HAVE_PERSONALITY]: New include <sys/personality.h>.
5779 [HAVE_PERSONALITY] [!HAVE_DECL_ADDR_NO_RANDOMIZE]: Set
5780 ADDR_NO_RANDOMIZE.
5781 (disable_randomization, show_disable_randomization)
5782 (set_disable_randomization): New.
5783 (linux_nat_create_inferior) [HAVE_PERSONALITY]: New variables
5784 PERSONALITY_ORIG and PERSONALITY_SET. Disable randomization upon the
5785 variable DISABLE_RANDOMIZATION.
5786 (_initialize_linux_nat): Call ADD_SETSHOW_BOOLEAN_CMD for the variable
5787 DISABLE_RANDOMIZATION.
5788
f9c72d52
PA
57892008-07-09 Pedro Alves <pedro@codesourcery.com>
5790
5791 Adjust all targets to new target_stop interface.
5792
5793 * gnu-nat.c (gnu_stop): Add ptid argument.
5794 * go32-nat.c (go32_stop): Add ptid argument.
5795 (go32_create_inferior): Pass inferior_ptid to go32_stop.
5796 * hpux-thread.c (hpux_thread_stop): Add ptid argument.
5797 * monitor.c (monitor_stop): Add ptid argument.
5798 (monitor_open): Pass inferior_ptid to monitor_stop.
5799 (monitor_interrupt): Pass inferior_ptid to target_stop.
5800 (monitor_stop): Add ptid argument.
5801 * nto-procfs.c (nto_interrupt): Pass inferior_ptid to target_stop.
5802 (procfs_create_inferior): Add ptid argument.
5803 * procfs.c (procfs_stop): Add ptid argument.
5804 * remote-m32r-sdi.c (m32r_stop): Add ptid argument.
5805 * remote-sim.c (gdbsim_stop): Add ptid argument.
5806 * sol-thread.c (sol_thread_stop): Add ptid argument.
5807 * win32-nat.c (win32_stop): Add ptid argument.
5808
94cc34af
PA
58092008-07-09 Pedro Alves <pedro@codesourcery.com>
5810
5811 Non-stop inferior control.
5812
5813 * infrun.c (resume): In non-stop mode, always resume just one
5814 thread.
5815 (proceed): Don't call prepare_to_proceed in non-stop mode.
5816 (fetch_inferior_event): In non-stop mode, switch context before
5817 handling the event.
5818 (error_is_running, ensure_not_running): New.
5819 (handle_inferior_event): In non-stop mode: Mark only the event
5820 thread as stopped. Require that the target module manages adding
5821 threads to the thread list. Assert that there isn't a
5822 deferred_step_ptid set. Don't switch to infwait_thread_hop_state.
5823 (normal_stop): Only mark not-running if inferior hasn't exited.
5824 In non-stop mode, only mark the event thread.
5825
5826 * thread.c:Include "cli/cli-decode.h".
5827 (print_thread_info): Don't read from a running thread.
5828 Output "(running)" if thread is running.
5829 (switch_to_thread): Don't read stop_pc if thread is executing.
5830 (do_restore_current_thread_cleanup): Don't write to a running
5831 thread.
5832 (thread_apply_all_command): Don't read from a running thread. In
5833 non-stop mode, do a full context-switch instead of just switching
5834 threads.
5835 (thread_apply_command): In non-stop mode, do a full context-switch
5836 instead of just switching threads.
5837 (do_captured_thread_select): Likewise. Inform user if selected
5838 thread is running.
5839 (_initialize_thread): Mark "info threads" and "thread" and
5840 async_ok.
5841
5842 * inf-loop.c (inferior_event_handler): In non-stop mode, don't
5843 unregister the target from the event loop.
5844
5845 * infcmd.c (continue_command, step_1, jump_command)
5846 (signal_command): Ensure the selected thread isn't running.
5847 (interrupt_target_command): In non-stop mode, interrupt only the
5848 selected thread.
5849
5850 * inferior.h (error_is_running, ensure_not_running): Declare.
5851
5852 * target.h (struct target_ops): Add ptid argument to the to_stop
5853 member.
5854 (target_stop): Add ptid_t argument.
5855
5856 * target.c (update_current_target): Add ptid argument to to_stop's
5857 type.
5858 (debug_to_stop): Add ptid_t argument.
5859 (debug_to_rcmd): Set to_stop_ptid.
5860
5861 * remote.c (remote_stop): Add ptid_t argument.
5862 (async_remote_interrupt): Add inferior_ptid to target_stop.
5863 * inf-ptrace.c (inf_ptrace_stop): Add ptid argument.
5864
5865 * Makefile.in (thread.o): Depend on $(cli_decode_h).
5866
59f0d5d9
PA
58672008-07-09 Pedro Alves <pedro@codesourcery.com>
5868
5869 Don't rely on ecs->wait_for_more.
5870
5871 * infrun.c (proceed): Clear the stepping state, set
5872 previous_inferior_ptid and clear infwait state.
5873 (wait_for_inferior): Don't clear the stepping state, set
5874 previous_inferior_ptid, or clear the infwait state here.
5875 (fetch_inferior_event): Don't clear the stepping state, set
5876 previous_inferior_ptid, or clear the infwait state here. Don't
5877 condition on wait_for_more.
5878
0d1e5fa7
PA
58792008-07-09 Pedro Alves <pedro@codesourcery.com>
5880
5881 Refactor infrun a bit.
5882
5883 * infrun.c (currently_stepping): Take a struct
5884 thread_stepping_state instead of an execution_control_state.
5885 (struct thread_stepping_state): New, split from
5886 execution_control_state.
5887 (gtss, tss): New globals.
5888 (proceed): Clear the stepping state, set previous_inferior_ptid
5889 and clear infwait state.
5890 (init_wait_for_inferior): Clear the stepping state,
5891 previous_inferior_ptid and infwait state.
5892 (waiton_ptid, infwait_state): New, split from
5893 execution_control_state.
5894 (struct execution_control_state): Members that persist through
5895 events moved out to either struct thred_stepping_state or made
5896 global. Deleted unneeded wp, saved_inferior_ptid, tmpstatus.
5897 (wait_for_inferior, fetch_inferior_event): Use local
5898 execution_control_state. Update to execution_control_state split.
5899 (init_execution_control_state): Adjust.
5900 (init_thread_stepping_state): New, extracted from
5901 init_execution_control_state.
5902 (context_switch): Take a ptid instead of an
5903 execution_control_state.
5904 (context_switch_to): Adjust.
5905 (adjust_pc_after_break): Adjust.
5906 (init_infwait_state): New.
5907 (handle_inferior_event): Adjust.
5908
a474d7c2
PA
59092008-07-09 Pedro Alves <pedro@codesourcery.com>
5910 Vladimir Prus <vladimir@codesourcery.com>
5911
5912 Per-thread commands.
5913
5914 * gdbthread.h: Remove unneeded forward declarations.
5915 Include "inferior.h".
5916 (struct thread_info): Add continuations,
5917 intermediate_continuations, proceed_to_finish, step_over_calls,
5918 stop_step, step_multi and stop_signal members.
5919 (save_infrun_state): Add continuations,
5920 intermediate_continuations, proceed_to_finish, step_over_calls,
5921 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5922 (load_infrun_state): Add continuations,
5923 intermediate_continuations, proceed_to_finish, step_over_calls,
5924 stop_step, step_multi, stop_signal and stop_bpstat parameters.
5925
5926 * thread.c (load_infrun_state): In non-stop mode, load
5927 continuations, intermediate_continuations, proceed_to_finish,
5928 step_over_calls, stop_step, step_multi and stop_signal.
5929 (save_infrun_state): Store continuations,
5930 intermediate_continuations, proceed_to_finish, step_over_calls,
5931 stop_step, step_multi, stop_signal and stop_bpstat.
5932 (save_infrun_state): Store continuations,
5933 intermediate_continuations, proceed_to_finish, step_over_calls,
5934 stop_step, step_multi, stop_signal and stop_bpstat.
5935 (free_thread): Clear The thread's stop_bpstat.
5936
5937 * inferior.h (context_switch_to): Declare.
5938
5939 * infrun.c (ecss): New global.
5940 (context_switch): Context switch continuations,
5941 intermediate_continuations, proceed_to_finish, step_over_calls,
5942 stop_step, step_multi, stop_signal and stop_bpstat.
5943 (wait_for_inferior): Use global ecss.
5944 (async_ecss, async_ecs): Delete.
5945 (fetch_inferior_event): Use global ecss.
5946 (context_switch_to): New.
5947
5948 * top.c (execute_command): In non-stop, only check if the current
5949 thread is running, in all-stop, check if there's any thread
5950 running.
5951
5952 * breakpoint.c (bpstat_remove_breakpoint): New.
5953 (bpstat_remove_breakpoint_callback): New.
5954 (delete_breakpoint): Clear the stop_bpstats of all threads.
5955
5956 * mi/mi-main.c (mi_cmd_execute): In non-stop, only check if the
5957 current thread is running, in all-stop, check if there's any
5958 thread running.
5959
5960 * Makefile.in (gdbthread_h): Depend on $(inferior_h).
5961
ad52ddc6
PA
59622008-07-09 Pedro Alves <pedro@codesourcery.com>
5963
5964 Add non_stop global.
5965
5966 * inferior.h (non_stop): Declare.
5967 * infrun.c (non_stop, non_stop_1): New.
5968 (set_non_stop, show_non_stop): New.
5969 (_initialize_infrun): Add "set/show non-stop" command.
5970
3a3e9ee3
PA
59712008-07-09 Pedro Alves <pedro@codesourcery.com>
5972
5973 Adjust fork/vfork/exec to pass ptids around.
5974
5975 * target.h (struct target_waitstatus): Store related_pid as a ptid.
5976 (inferior_has_forked, inferior_has_vforked, inferior_has_execd):
5977 Take a ptid_t.
5978 * breakpoint.h (struct breakpoint): Change forked_inferior_pid
5979 type to ptid.
5980 * breakpoint.c (print_it_typical, bpstat_check_location)
5981 (print_one_breakpoint_location, set_raw_breakpoint_without_location)
5982 (create_fork_vfork_event_catchpoint): Adjust.
5983 * infrun.c (fork_event): Change parent_pid and child_pid types to
5984 ptid.
5985 (follow_exec, inferior_has_forked, inferior_has_vforked)
5986 (inferior_has_execd): Take a ptid_t and don't trim it.
5987 * linux-thread-db.c (thread_db_wait): Don't trim the returned ptid.
5988 * linux-nat.c (linux_child_follow_fork): Adjust.
5989 * inf-ptrace.c (inf_ptrace_wait): Adjust.
5990 * inf-ttrace.c (inf_ttrace_wait): Adjust.
5991 * win32-nat.c (get_win32_debug_event): Don't set related_pid.
5992
8ea051c5
PA
59932008-07-09 Pedro Alves <pedro@codesourcery.com>
5994
5995 Add "executing" property to threads.
5996
5997 * inferior.h (target_executing): Delete.
5998 * gdbthread.h (struct thread_info): Add executing_ field.
5999 (set_executing, is_executing): New.
6000 * thread.c (main_thread_executing): New.
6001 (init_thread_list): Clear it and also main_thread_running.
6002 (is_running): Return false if target has no execution.
6003 (any_running, is_executing, set_executing): New.
6004
6005 * top.c: Include "gdbthread.h".
6006 (target_executing): Delete.
6007 (execute_command): Replace target_executing check by any_running.
6008 * event-top.c: Include "gdbthread.h".
6009 (display_gdb_prompt, command_handler): Replace target_executing by
6010 is_running.
6011 * inf-loop.c: Include "gdbthread.h". Don't mark as not executing
6012 here. Replace target_executing by is_running.
6013 * infrun.c (handle_inferior_event): Mark all threads as
6014 not-executing.
6015 * linux-nat.c (linux_nat_resume): Don't mark thread as executing
6016 here.
6017 * stack.c (get_selected_block): Return null if inferior is
6018 executing.
6019 * target.c (target_resume): Mark resumed ptid as executing.
6020 * breakpoint.c (until_break_command): Replace target_executing
6021 check by is_executing.
6022 * remote.c (remote_async_resume): Don't mark inferior as executing
6023 here.
6024 * mi/mi-interp.c (mi_cmd_interpreter_exec): Replace target_executing
6025 by any_running.
680b56ce 6026
8ea051c5
PA
6027 * mi/mi-main.c (mi_cmd_exec_interrupt, mi_cmd_execute)
6028 (mi_execute_async_cli_command): Replace target_executing by
6029 is_running.
6030
6031 * frame.c (get_current_frame): Error out if the current thread is
6032 executing.
6033 (has_stack_frames): New.
6034 (get_selected_frame, deprecated_safe_get_selected_frame): Check
6035 has_stack_frames.
680b56ce 6036
8ea051c5
PA
6037 * Makefile.in (event-top.o, frame.o, inf-loop.o, top.o): Depend on
6038 $(gdbthread_h).
6039
4487aabf
PA
60402008-07-09 Pedro Alves <pedro@codesourcery.com>
6041
6042 * symfile.c (load_command): Reopen the exec file and reread
6043 symbols before anything else.
6044
9de2bdd7
PA
60452008-07-09 Pedro Alves <pedro@codesourcery.com>
6046
6047 * remote-sim.c: Include gdbthread.h.
6048 (remote_sim_ptid): New global.
6049 (gdbsim_create_inferior): Silently add the main task to GDB's
6050 thread list.
6051 (gdbsim_close, gdbsim_mourn_inferior): Silently delete the main
6052 task from GDB's thread list.
6053 (gdbsim_resume): Adjust to use remote_sim_ptid.
6054 (gdbsim_thread_alive, gdbsim_pid_to_str): New.
6055 (init_gdbsim_ops): Register gdbsim_thread_alive and
6056 gdbsim_pid_to_str.
6057 (_initialize_remote_sim): Initialize remote_sim_ptid.
6058 * Makefile.in (remote-sim.o): Depend on $(gdbthread_h).
6059
5e0b29c1
PA
60602008-07-09 Pedro Alves <pedro@codesourcery.com>
6061
6062 * monitor (monitor_ptid): New global.
6063 (monitor_open): Silently add the main task to GDB's thread list.
6064 (monitor_close, monitor_mourn_inferior): Silently delete the main
6065 task from GDB's thread list.
6066 (monitor_thread_alive, monitor_pid_to_str): New.
6067 (init_base_monitor_ops): Register monitor_thread_alive and
6068 monitor_pid_to_str.
6069 (_initialize_remote_monitors): Initialize monitor_ptid.
6070
6071 * gdbthread.h (delete_thread_silent): Declare.
6072 * thread.c (delete_thread): Rename to ...
6073 (delete_thread_1): ... this. Add "silent" parameter. If silent,
6074 don't do exit notifications.
6075 (delete_thread, delete_thread_silent): New, as wrappers to
6076 delete_thread_1.
6077
b60e7edf
PA
60782008-07-08 Pedro Alves <pedro@codesourcery.com>
6079
6080 * breakpoint.c (update_global_location_list): Add boolean
6081 "should_insert" argument. Only insert locations if caller told it
6082 too.
6083 (update_global_location_list_nothrow): Add boolean "should_insert"
6084 argument. Pass it to update_global_location_list.
6085 (insert_breakpoints, create_longjmp_breakpoint)
6086 (create_overlay_event_breakpoint, enable_overlay_breakpoints)
6087 (create_thread_event_breakpoint, create_solib_event_breakpoint)
6088 (create_fork_vfork_event_catchpoint, create_exec_event_catchpoint)
6089 (enable_watchpoints_after_interactive_call_stop)
6090 (set_momentary_breakpoint, create_breakpoints)
6091 (break_command_really, watch_command_1)
6092 (create_ada_exception_breakpoint, update_breakpoint_locations)
6093 (do_enable_breakpoint, enable_command): Pass true to
6094 update_global_location_list.
6095 (bpstat_stop_status, disable_overlay_breakpoints)
6096 (disable_watchpoints_before_interactive_call_start)
6097 (delete_breakpoint, disable_breakpoint, disable_command): Pass
6098 false to update_global_location_list.
6099 (update_breakpoints_after_exec): Don't temporarily disable
6100 always-inserted mode.
6101
25b22b0a
PA
61022008-07-08 Pedro Alves <pedro@codesourcery.com>
6103
6104 * breakpoint.c (mark_breakpoints_out): Make public.
6105 (update_breakpoints_after_exec): Don't call mark_breakpoints_out
6106 here. Update comment.
6107 * breakpoint.h (mark_breakpoints_out): Declare.
6108
6109 * linux-nat.c (linux_handle_extended_wait): On
6110 TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
6111 * inf-ttrace.c (inf_ttrace_wait): Likewise.
6112
cce9b6bf
PA
61132008-07-08 Pedro Alves <pedro@codesourcery.com>
6114
6115 * infrun.c (follow_exec): Reset shared libraries before adding the
6116 main exec file.
6117
3c3185ac
JK
61182008-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
6119
6120 * breakpoint.c (bpstat_copy): Call RELEASE_VALUE on the new OLD_VAL.
6121
42f0bc8e
PA
61222008-07-07 Pedro Alves <pedro@codesourcery.com>
6123
6124 * i386-dicos-tdep.c: Include "inferior.h".
6125 (i386_dicos_frame_align): New.
6126 (i386_dicos_init_abi): Register i386_dicos_frame_align. Set call
6127 dummy location ON_STACK.
6128 * Makefile.in (i386-dicos-tdep.o): Depend on $(inferior_h).
6129
b7292df3
JB
61302008-07-07 Joel Brobecker <brobecker@adacore.com>
6131
6132 * gstdint.h: New file.
6133
bb599c81
VP
61342008-07-05 Vladimir Prus <vladimir@codesourcery.com>
6135
6136 * mi/mi-interp.c (mi_on_resume): Don't try to report
6137 resumed thread it the thread list is empty.
6138
7f6a6314
PM
61392008-07-05 Pierre Muller <muller@ics.u-strasbg.fr>
6140
6141 * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
6142 completer for set to filename_completer.
680b56ce 6143
7f6a6314
PM
6144 NEWS: Mention it.
6145
711eabed
VP
61462008-07-04 Vladimir Prus <vladimir@codesourcery.com>
6147
6148 Implement -target-attach.
680b56ce 6149 * mi/mi-cmds.c (mi_cmds): Forward -target-attach to CLI attach.
711eabed 6150
db3b9a10
MS
61512008-06-21 Hui Zhu <teawater@gmail.com>
6152
6153 * target-descriptions.c (maint_print_c_tdesc_cmd): Fix a memory leak.
6154
dc177b7a
PA
61552008-07-03 Pedro Alves <pedro@codesourcery.com>
6156
6157 * config/i386/nm-cygwin.h (ATTACH_NO_WAIT): Delete.
6158 * config/i386/nm-i386gnu.h (ATTACH_NO_WAIT): Delete.
6159
6160 * target.h (struct target_ops): Add to_attach_no_wait member.
6161 (target_attach_no_wait): New.
6162 * target.c (update_current_target): Inherit to_attach_no_wait.
6163
6164 * infcmd.c: Replace ATTACH_NO_WAIT compile time check by
6165 target_attach_no_wait runtime check.
6166
6167 * gnu-nat.c (init_gnu_ops): Set to_attach_no_wait in gnu_ops.
6168 * win32-nat.c (init_win32_ops): Set to_attach_no_wait in
6169 win32_ops.
6170
caac8896
PA
61712008-07-03 Pedro Alves <pedro@codesourcery.com>
6172
6173 * i386-tdep.c (i386_displaced_step_fixup): Condition log printing
6174 on debug_displaced being set.
6175
0d254d6f
DJ
61762008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6177
6178 * frame.c (get_prev_frame_1): Call frame_unwind_find_by_frame
6179 directly instead of get_frame_id.
6180
f74c6cad
LM
61812008-06-30 Luis Machado <luisgpm@br.ibm.com>
6182
6183 * rs6000-tdep.c (ppc_displaced_step_fixup): New function.
6184 (deal_with_atomic_sequence): Update BC masks.
6185 (rs6000_gdbarch_init): Init displaced stepping infra-structure.
6186 Define BRANCH_MASK, B_INSN, BC_INSN, BXL_INSN, BP_MASK and BP_INSN.
6187
395f2fc2
DJ
61882008-06-30 Daniel Jacobowitz <dan@codesourcery.com>
6189
6190 * cris-tdep.c (crisv32_single_step_through_delay): Get this frame's
6191 register, not the previous frame's.
6192
8340a3fb
LM
61932008-06-30 Luis Machado <luisgpm@br.ibm.com>
6194
6195 * source.c (select_source_symtab): Make sure we skip namespace
6196 symtabs when showing cpp source code.
6197
cfefc99a
HPN
61982008-06-30 Hans-Peter Nilsson <hp@axis.com>
6199
6200 * MAINTAINERS (Authorized committers): Fix my email address.
6201
1b98914a
VP
62022008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6203
6204 * mi/mi-cmds.c (mi_cmds): Route -exec-run, -exec-until,
6205 -target-download and -target-select via CLI, so that
6206 the quoting rules are the same as they were (unfortunately)
6207 in all prior gdb releases.
6208 * mi/mi-cmds.h (mi_cmd_exec_run, mi_cmd_exec_until)
6209 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6210 * mi/mi-main.c (mi_cmd_exec_run, mi_cmd_exec_until)
6211 (mi_cmd_target_download, mi_cmd_target_select): Remove.
6212 (mi_cmd_execute): Set current_token even for commands
6213 routed via CLI.
6214
94afd7a6
UW
62152008-06-28 Ulrich Weigand <uweigand@de.ibm.com>
6216
6217 * alphafbsd-tdep.c: Update for unwinder changes.
6218 * alpha-linux-tdep.c: Likewise.
6219 * alphanbsd-tdep.c: Likewise.
6220 * alphaobsd-tdep.c: Likewise.
6221 * avr-tdep.c: Likewise.
6222 * cris-tdep.c: Likewise.
6223 * frv-linux-tdep.c: Likewise.
6224 * frv-tdep.c: Likewise.
6225 * h8300-tdep.c: Likewise.
6226 * hppa-linux-tdep.c: Likewise.
6227 * iq2000-tdep.c: Likewise.
6228 * m32c-tdep.c: Likewise.
6229 * m32r-linux-tdep.c: Likewise.
6230 * m32r-tdep.c: Likewise.
6231 * m68hc11-tdep.c: Likewise.
6232 * mep-tdep.c: Likewise.
6233 * mn10300-tdep.c: Likewise.
6234 * mt-tdep.c: Likewise.
6235 * score-tdep.c: Likewise.
6236 * sh64-tdep.c: Likewise.
6237 * sh-tdep.c: Likewise.
6238 * sparc64fbsd-tdep.c: Likewise.
6239 * sparc64nbsd-tdep.c: Likewise.
6240 * sparc64obsd-tdep.c: Likewise.
6241 * v850-tdep.c: Likewise.
6242 * vaxobsd-tdep.c: Likewise.
6243 * vax-tdep.c: Likewise.
6244 * xstormy16-tdep.c: Likewise.
6245
e111d6c9
VP
62462008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6247
6248 * mi/mi-main.c (enum captured_mi_execute_command_actions)
6249 (captured_mi_execute_command_args): Remove.
6250 (captured_mi_execute_command): Cast the closure to mi_parse
6251 pointer, not to captured_mi_execute_command_args, and don't
6252 set the action field thereof.
6253 (mi_execute_command): Pass struct mi_parse, not
6254 captured_mi_execute_command_args to captured_mi_execute_command.
6255 (mi_execute_command): Remove (dead) code for suppressing
6256 printing prompt.
6257
84e46146
PA
62582008-06-28 Pedro Alves <pedro@codesourcery.com>
6259
6260 * linux-nat.c (enum sigchld_state): New.
6261 (linux_nat_async_events_state): Renamed from
6262 linux_nat_async_events_enabled.
6263 (linux_nat_event_pipe_push, my_waitpid): Adjust.
6264 (sigchld_default_action): New.
6265 (lin_lwp_attach_lwp): Adjust. Call linux_nat_async_events
6266 unconditionally.
6267 (linux_nat_create_inferior): Set events state to sigchld_default
6268 state.
6269 (linux_nat_resume): Adjust.
6270 (linux_nat_wait): Call linux_nat_async_events unconditionally.
6271 (sigchld_handler): Adjust.
6272 (linux_nat_async_mask): Don't set SIGCHLD actions here.
6273 (get_pending_events): Adjust.
6274 (linux_nat_async_events): Rewrite to handle enum sigchld_state
6275 instead of a boolean.
6276 (linux_nat_async): Adjust.
6277 (_initialize_linux_nat): Capture default SIGCHLD action into
6278 sigchld_default_action.
6279
20874c92
VP
62802008-06-28 Vladimir Prus <vladimir@codesourcery.com>
6281
680b56ce
AS
6282 * breakpoint.c (moribund_locations): New.
6283 (bpstat_stop_status): Process moribund locations.
6284 (update_global_location_list): Add removed
6285 locations to moribund_locations.
6286 (breakpoint_retire_moribund): New.
6287 * breakpoint.h (struct bp_location): New field
6288 events_till_retirement.
6289 (breakpoint_retire_moribund): Declare.
6290 * thread.c (thread_count): New.
6291 * infrun.c (handle_inferior_event): Call
6292 breakpoint_retire_moribund.
6293 * gdbthread.h (thread_count): Declare.
20874c92 6294
cd0b43b1
JM
62952008-06-27 Joseph Myers <joseph@codesourcery.com>
6296
6297 * dfp.c (decimal_convert): Call match_endianness before and after
6298 conversion.
6299
7c0f6dcc
JL
63002008-06-27 Jonathan Larmour <jifl@eCosCentric.com>
6301
6302 * remote.c (remote_insert_breakpoint): Ensure that if Z0
6303 unsupported and we fall back to memory_insert_breakpoint, we
6304 use the unmodified requested address.
6305
01c66ae6
JB
63062008-06-27 Joel Brobecker <brobecker@adacore.com>
6307
6308 * dwarf2read.c (read_attribute_value): Issue a complaint when
6309 adjusting size attribute values of 0xffffffff as zero.
6310
7ccc1c74
JM
63112008-06-27 Joseph Myers <joseph@codesourcery.com>
6312
6313 * i386-tdep.c (i386_16_byte_align_p): New.
6314 (i386_push_dummy_call): Determine stack space required for
6315 arguments going forwards allowing for 16-byte alignment, then push
6316 arguments going forwards.
6317
c0a2216e
PA
63182008-06-27 Pedro Alves <pedro@codesourcery.com>
6319
6320 * infrun.c (start_remote): Don't clear thread list here.
6321 * monitor.c (monitor_open): Include "gdbthread.h". Clear thread
6322 list here.
6323 * remote.c (record_currthread): Upgrade the main thread and its
6324 entry in the thread list if this is the first time we hear about
6325 threads.
6326 (remote_thread_alive): Consider magic_null_ptid or a ptid without
6327 a tid member always alive.
6328 (remote_find_new_threads): Don't update the main thread here.
6329 (remote_start_remote): Clear thread list here. Always add the
6330 main thread.
6331 (extended_remote_attach_1): Add the main thread here.
6332 (extended_remote_mourn_1): Re-add the main thread here.
6333 (extended_remote_create_inferior_1): Add a main thread.
6334
6335 * Makefile.in (monitor.o): Depend on $(gdbthread_h).
6336
87b0e16e 63372008-06-27 Pedro Alves <pedro@codesourcery.com>
79d7f229
PA
6338
6339 Use ptid_t.tid to store thread ids instead of ptid_t.pid.
6340
6341 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): New
6342 globals.
6343 (general_thread, continue_thread): Change type to ptid_t.
6344 (record_currthread): Take a ptid_t parameter instead of an
6345 integer.
6346 (MAGIC_NULL_PID): Delete.
6347 (set_thread): Take a ptid_t parameter and adjust.
6348 (set_general_thread, set_continue_thread): New.
6349 (remote_thread_alive, remote_newthread_step)
6350 (remote_current_thread, remote_find_new_threads)
6351 (remote_threads_info, remote_start_remote, remote_vcont_resume)
6352 (remote_resume_1, remote_wait, extended_remote_create_inferior_1)
6353 (threadalive_test, remote_pid_to_str)
6354 (remote_get_thread_local_address): Adjust.
6355 (_initialize_remote): Initialize magic_null_ptid, not_sent_ptid
6356 and any_thread_ptid.
6357
3ca64bd3
JK
63582008-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6359
6360 * configure.ac (--enable-tui): AC_MSG_ERROR for explicit --enable-tui.
6361 * configure: Regenerated.
6362
28e94949
JB
63632008-06-26 Joel Brobecker <brobecker@adacore.com>
6364
6365 * dwarf2read.c (read_attribute_value): Treat size attribute
6366 values of 0xffffffff as if the attribute value was zero.
6367
8a77dff3
VP
63682008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6369
6370 * linux-nat.c: Add description of overall logic.
6371
d5af19ba
DJ
63722008-06-26 Daniel Jacobowitz <dan@codesourcery.com>
6373
6374 * Makefile.in (GNULIB_H): Use GNULIB_STDINT_H.
6375 (gdb_stdint_h, gdb_stdint.h, stamp-int): Delete. Remove
6376 all dependencies on $(gdb_stdint_h).
6377 (distclean): Do not delete gdb_stdint.h.
6378 * acinclude.m4: Do not use stdint.m4.
6379 * configure.ac: Set GNULIB_STDINT_H. Remove tests for stdint.h,
6380 uintptr_t, and gdb_stdint.h.
6381 * defs.h: Include <stdint.h>.
6382 * gdb_thread_db.h: Assume stdint.h is already included.
6383 * breakpoint.c, findcmd.c, hppa-tdep.c, inf-ptrace.c, proc-service.c,
6384 rs6000-nat.c, spu-linux-nat.c, target.c, win32-nat.c: Do not
6385 include gdb_stdint.h.
6386 * configure, config.in: Regenerate.
6387
00fbcec4
JM
63882008-06-26 Joseph Myers <joseph@codesourcery.com>
6389
6390 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Handle passing
6391 decimal floating-point values in GPRs for soft-float.
6392 (do_ppc_sysv_return_value): Handle returning decimal
6393 floating-point values in GPRs for soft-float.
6394
d5086790
VP
63952008-06-26 Vladimir Prus <vladimir@codesourcery.com>
6396
6397 * target.c (target_read_until_error): New.
680b56ce
AS
6398 * target.h (target_read_until_error): Declare.
6399 * mi/mi-main.c (mi_cmd_data_read_memory): Use
6400 target_read_until_error.
d5086790 6401
fe9441f6
JK
64022008-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6403
6404 Fix a memory leak found by Hui Zhu <teawater@gmail.com>.
6405 * c-exp.y (parse_number): Move the S and SAVED_CHAR initialization
6406 after the DECFLOAT detection to fix a memory leak. Remove the
6407 redundant NUM initialization. Protect the DECFLOAT detection memory
6408 access before the P block. Restore the P memory content for the
6409 DECFLOAT detection.
6410
ce8f13f8
VP
64112008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6412
6413 Kill the return value for all MI command functions.
6414 * mi/mi-cmds.h (enum mi_cmd_result): Remove.
6415 (mi_cmd_argv_ftype): Change return type to void.
6416
6417 * mi/mi-main.c: Adjust all function that implement
6418 MI commands to return nothing.
6419 (struct captured_mi_execute_command_actions):
6420 Remove the rc field.
6421 (mi_cmd_execute): Return nothing.
6422 (mi_execute_async_cli_command): Return nothing.
6423 (mi_cmd_exec_interrupt): Don't print ^done here.
6424 (mi_cmd_target_select): Don't print ^connected here.
6425 (captured_mi_execute_command): Don't check for MI_CMD_DONE.
6426 Special-case -target-select and output ^connected, not ^done.
6427
6428 * mi/mi-cmd-break.c: Adjust.
6429 * mi/mi-cmd-disas.c: Adjust.
6430 * mi/mi-cmd-env.c: Adjust.
6431 * mi/mi-cmd-file.c: Adjust.
6432 * mi/mi-cmd-stack.c: Adjust.
6433 * mi/mi-cmd-target.c: Adjust.
6434 * mi/mi-cmd-var.c: Adjust.
6435 * mi/mi-interp.c: Adjust.
6436 * mi/mi-symbol-cmds.c: Adjust.
6437
a2840c35
VP
64382008-06-25 Vladimir Prus <vladimir@codesourcery.com>
6439
6440 Emit ^running via observer.
6441 * mi/mi-interp.c (mi_cmd_interpreter_exec): Do no print
680b56ce
AS
6442 ^running here.
6443 (mi_on_resume): Print ^running if not previously output.
6444 * mi/mi-main.c (running_result_record_printed): New.
6445 (captured_mi_execute_command): Reset
6446 running_result_record_printed. Use running_result_record_printed
6447 to decide if we should skip ^done.
6448 (mi_execute_async_cli_command): Don't print ^running here.
6449 * mi/mi-main.h (current_token, running_result_record_printed):
6450 Declare.
a2840c35 6451
1f41b062
MS
64522008-06-24 Michael Snyder <msnyder@specifix.com>
6453
6454 * infrun.c (_initialize_infrun): White space and typo fix.
6455
eff8332b
CF
64562008-06-23 Christopher Faylor <me.gdb.changelog@cgf.cx>
6457
6458 * win32-nat.c (safe_symbol_file_add_stub): Remove unused variable.
6459 (do_initial_win32_stuff): Fix problem with inability to set breakpoints
6460 when first loading DLL with "dll" command.
6461
e50ce6de 64622008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
114374a0
PM
6463
6464 * gnu-nat.c (proc_string): Use capital T for "Thread".
680b56ce 6465
e50ce6de 64662008-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
17526a8c
PM
6467
6468 * win32-nat.c (win32_pid_to_str): Use capital T for "Thread".
680b56ce 6469
59ddf1e7
JB
64702008-06-18 Joel Brobecker <brobecker@adacore.com>
6471
680b56ce
AS
6472 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6473 the target cannot run.
59ddf1e7
JB
6474
64752008-06-18 Joel Brobecker <brobecker@adacore.com>
ea8eedbe
JB
6476
6477 * solib-osf.c (osf_solib_create_inferior_hook): Do nothing if
6478 we're attaching to a running process.
6479
e50ce6de 64802008-06-18 Pierre Muller <muller@ics.u-strasbg.fr>
7488902c
PM
6481
6482 * win32-nat.c (handle_load_dll): Give dll name and load address
6483 if debug_events is on.
6484 (handle_unload_dll): Likewise.
6485
8f6a8e84
VP
64862008-06-14 Vladimir Prus <vladimir@codesourcery.com>
6487
6488 Don't suppress *running when doing finish.
680b56ce
AS
6489 * infcall.c (call_function_by_hand): Set both
6490 suppress_resume_observer and suppress_stop_observer.
6491 * infcmd.c (suppress_run_stop_observers): Split into...
6492 (suppress_resume_observer, suppress_stop_observer): ...those.
6493 (finish_command_continuation): Clear suppress_stop_observer.
6494 (finish_command): Set suppress_stop_observer.
6495 * inferior.h (suppress_run_stop_observers): Split into...
6496 (suppress_resume_observer, suppress_stop_observer): ...those.
6497 * infrun.c (normal_stop): Check for suppress_stop_observer.
6498 * thread.c (set_running): Check for suppress_resume_observer.
8f6a8e84 6499
4309257c
PM
65002008-06-12 Pedro Alves <pedro_alves@portugalmail.pt>
6501 Pierre Muller <muller@ics.u-strasbg.fr>
6502
6503 * gdbarch.sh (gdbarch_skip_main_prologue): New.
6504 * gdbarch.h, gdbarch.c: Regenerate.
6505 * i386-tdep.h (i386_skip_main_prologue): Declare.
6506 * i386-tdep.c (i386_skip_main_prologue): New.
680b56ce 6507 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register
4309257c
PM
6508 i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback.
6509 * symtab.c (find_function_start_sal): When pc points at the "main"
6510 function, call gdbarch_skip_main_prologue.
6511
a4e2ee12
DJ
65122008-06-11 Daniel Jacobowitz <dan@codesourcery.com>
6513
6514 * value.c (value_primitive_field): Fetch lazy register values.
6515
060871df
PA
65162008-06-11 Pedro Alves <pedro@codesourcery.com>
6517
6518 * NEWS: Mention support removal of undocumented S AA p PID stop
6519 reply packet.
6520
6521 * remote.c (remote_wait): Remove undocumented S AA p PID support.
6522
336de56d
SS
65232008-06-10 Stan Shebs <stan@codesourcery.com>
6524
6525 * MAINTAINERS: Update my affiliation and address.
6526
7949220d
AS
65272008-06-10 Andreas Schwab <schwab@suse.de>
6528
6529 * top.c (print_gdb_version): Don't print final newline.
6530
e1ac3328
VP
65312008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6532
6533 Implement *running.
680b56ce
AS
6534 * Makefile.in: Update dependencies.
6535 * gdbthread.h (struct thread_info): New field
6536 running_.
6537 (set_running, is_running): New.
6538 * thread.c (set_running, is_running): New.
6539 * inferior.h (suppress_normal_stop_observer): Rename to...
6540 (suppress_run_stop_observers): ..this.
6541 * infcmd.c (suppress_normal_stop_observer): Rename to...
6542 (suppress_run_stop_observers): ..this.
6543 (finish_command_continuation, finish_command): Adjust.
6544 * infcall.c (call_function_by_hand): Adjust.
6545 * infrun.c (normal_stop): Call set_running.
6546 * target.c (target_resume): New. Call set_running.
6547 * target.h (target_resume): Convert from macro to
6548 a function.
6549
6550 * mi/mi-interp.c (mi_on_resume): New.
6551 (mi_interpreter_init): Register mi_on_resume.
e1ac3328 6552
f7f9a841
VP
65532008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6554
6555 Use observers to report stop events in MI.
680b56ce
AS
6556 * mi/mi-interp.c (mi_on_normal_stop): New.
6557 (mi_interpreter_init): Register mi_on_normal_stop.
6558 (mi_interpreter_exec_continuation): Remove.
6559 (mi_cmd_interpreter_exec): Don't register the above.
6560 * mi/mi-main.c (captured_mi_execute_command): Don't care
6561 about sync_execution.
6562 (mi_execute_async_cli_command): Don't install continuation. Don't
6563 print *stopped.
6564 (mi_exec_async_cli_cmd_continuation): Remove.
f7f9a841 6565
f5871ec0
VP
65662008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6567
6568 Suppress normal stop observer when it's problematic.
680b56ce
AS
6569 * inferior.h (suppress_normal_stop_observer): New.
6570 * infcall.c (call_function_by_hand): Disable stop events when
6571 doing function calls.
6572 * infmcd.c (suppress_normal_stop_observer): New.
6573 (finish_command_continuation): Call normal_stop observer
6574 explicitly.
6575 (finish_command): Disable stop events inside proceed.
6576 * infrun.c (normal_stop): Don't call normal stop observer if
6577 suppressed of if multi-step is in progress.
f5871ec0 6578
3d3191a6
VP
65792008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6580
6581 Remove stale code.
680b56ce
AS
6582 * infrun.c (finish_command): Don't pass cleanup
6583 to continuation.
6584 (finish_command_continuation): Don't grab cleanup from
6585 the passed data, as we don't use, and cannot, use it anyway.
3d3191a6 6586
0b080f59
VP
65872008-06-10 Vladimir Prus <vladimir@codesourcery.com>
6588
6589 Introduce common cleanup for restoring integers.
680b56ce
AS
6590 * defs.h (make_cleanup_restore_integer): New declaration.
6591 (struct cleanup): New field free_arg.
6592 (make_my_cleanup_2): New.
6593 * utils.c (restore_integer_closure, restore_integer)
6594 (make_cleanup_restore_integer): New.
6595 (make_my_cleanup): Initialize the free_arg field and
6596 renamed to make_my_cleanup_2.
6597 (do_my_cleanups): Call free_arg.
6598 (discard_cleanups): Call free_arg.
6599 * breakpoint.c (restore_always_inserted_mode): Remove.
6600 (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
0b080f59 6601
b4f62b57
DE
66022008-06-09 Doug Evans <dje@google.com>
6603
6604 * remote.c (remote_wait): Include beginning of malformed packet
6605 in error output.
6606
37cd5d19
TT
66072008-06-09 Tom Tromey <tromey@redhat.com>
6608
6609 * completer.c (complete_line): Don't special-case
6610 expression_completer.
6611 (expression_completer): Only pass last word to
6612 location_completer.
6613 * c-exp.y (yylex): Check 'token', not 'operator'.
6614
3526781e
DJ
66152008-06-09 Daniel Jacobowitz <dan@codesourcery.com>
6616
6617 * configure.ac (build_warnings): Add -Wno-format for mingw.
6618 * configure: Regenerated.
6619
d001be7a
DJ
66202008-06-07 Daniel Jacobowitz <dan@codesourcery.com>
6621
6622 * NEWS: Make indentation consistent. Move exec tracing entry out
6623 of remote packet list.
6624
65d12d83
TT
66252008-06-06 Tom Tromey <tromey@redhat.com>
6626
6627 * value.h (evaluate_subexpression_type, extract_field_op):
6628 Declare.
6629 * printcmd.c (_initialize_printcmd): Use expression_completer for
6630 'p', 'inspect', 'call'.
6631 * parser-defs.h (parse_field_expression): Declare.
6632 * parse.c: Include exceptions.h.
6633 (in_parse_field, expout_last_struct): New globals.
6634 (mark_struct_expression): New function.
6635 (prefixify_expression): Return int.
6636 (prefixify_subexp): Return int. Use expout_last_struct.
6637 (parse_exp_1): Update.
6638 (parse_exp_in_context): Add 'out_subexp' argument. Handle
6639 in_parse_field.
6640 (parse_field_expression): New function.
6641 * expression.h (parse_field_expression): Declare.
6642 (in_parse_field): Likewise.
6643 * eval.c (evaluate_subexpression_type): New function.
6644 (extract_field_op): Likewise.
6645 * completer.h (expression_completer): Declare.
6646 * completer.c (expression_completer): New function.
6647 (count_struct_fields, add_struct_fields): New functions.
6648 * c-exp.y (yyparse): Redefine.
6649 (COMPLETE): New token.
6650 (exp): New productions.
6651 (saw_name_at_eof, last_was_structop): New globals.
6652 (yylex): Return COMPLETE when needed. Recognize in_parse_field.
6653 (c_parse): New function.
6654 * breakpoint.c (_initialize_breakpoint): Use expression_completer
6655 for watch, awatch, and rwatch.
6656 * Makefile.in (parse.o): Depend on exceptions_h.
6657
fed27633
PP
66582008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6659
6660 PR gdb/1147
6661 * gdb/valopts.c (find_overload_match): Handle references
6662 to pointers.
6663
aced2898
PH
66642008-06-06 Paul N. Hilfinger <hilfinger@adacore.com>
6665
6666 * ada-lang.c (ada_value_assign): Correct big-endian case to take into
6667 account the bitsize of the 'from' operand.
6668
a2b87ed1
PA
66692008-06-06 Pedro Alves <pedro@codesourcery.com>
6670
6671 * annotate.h (annotate_thread_changed): Declare.
6672
3d6d0b9d
NR
66732008-06-06 Nick Roberts <nickrob@snap.net.nz>
6674
6675 * annotate.c (annotate_thread_changed): New function.
6676 * thread.c (thread_command) : Use it.
6677 * infrun.c (normal_stop): Use it.
6678
c16158bc 66792008-06-05 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
6680 Nathan Sidwell <nathan@codesourcery.com>
6681 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
6682
6683 * acinclude.m4: Include ../config/acx.m4.
6684 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
6685 * configure, config.in: Regenerate.
6686 * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting
6687 address.
6688 * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO.
6689
75c99385
PA
66902008-06-05 Pedro Alves <pedro@codesourcery.com>
6691
6692 Replace 'target async' by 'maintenance set remote-async' and
6693 'target remote' combination.
6694
6695 * remote.c (remote_async_wait): Merge into remote_wait, and
6696 remove.
6697 (remote_async_permitted, remote_async_permitted_set): New
6698 variables.
6699 (set_maintenance_remote_async_permitted)
6700 (show_maintenance_remote_async_permitted): New functions.
6701 (remote_async_ops, extended_async_remote_ops): Delete.
6702 (remote_async_open, extended_remote_async_open): Delete.
6703 (remote_open_1): Drop async_p parameter. Update callers. Replace
6704 async_p with remote_async_permitted checks.
6705 (extended_async_remote_attach): Delete.
6706 (remote_resume, remote_async_resume): Merge and leave remote_resume.
6707 (remote_async_terminal_inferior): Rename to...
6708 (remote_terminal_inferior): ... this, and add
6709 remote_async_termitted check.
6710 (remote_async_terminal_ours): Rename to...
6711 (remote_terminal_ours): ... this, and add remote_async_termitted
6712 check.
6713 (remote_wait, remote_async_wait): Merge and leave remote_wait
6714 only.
6715 (remote_kill, remote_async_kill): Merge and leave remote_kill
6716 only.
6717 (remote_async_mourn, extended_async_remote_mourn): Delete.
6718 (extended_remote_create_inferior_1): Drop async_p parameter.
6719 Update callers. Always use extended_remote_ops.
6720 (extended_remote_async_create_inferior): Delete.
6721 (remote_return_zero): Delete.
6722 (init_remote_ops): Register remote_can_async_p, remote_async,
6723 remote_async_mask, remote_terminal_inferior and
6724 remote_terminal_ours.
6725 (remote_can_async_p, remote_is_async_p): Check for
6726 remote_async_permitted.
6727 (init_remote_async_ops, init_extended_async_remote_ops): Remove.
6728 (set_remote_cmd): Don't add async and extended-async targets.
6729 (_initialize_remote): Add set/show remote-async maintenance
6730 commands.
6731
cf30943b
PA
67322008-06-05 Pedro Alves <pedro@codesourcery.com>
6733
6734 * remote.c (kill_kludge): Delete.
6735 (remote_wait, remote_async_wait): Don't set it.
6736 (remote_kill, remote_async_kill): Don't do anything with it.
6737
49fd4a42
PA
67382008-06-05 Pedro Alves <pedro@codesourcery.com>
6739
6740 * linux-thread-db.c (thread_db_wait): Don't trim event ptid.
6741
2e618c13
AR
67422008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6743
6744 * bcache.c (bcache_data): Call deprecated_bcache_added function.
680b56ce
AS
6745 (deprecated_bcache_added): New function name. Body of function
6746 bcache_data is used here with the addition of 'added' argument.
2e618c13
AR
6747 * bcache.h (deprecated_bcache_added): New function.
6748 * symfile.c (add_psymbol_to_bcache): New helper function, takes part of
6749 work from add_psymbol_to_list - initialises partial symbol and stashes
6750 it in objfile's cache.
680b56ce 6751 (append_psymbol_to_list): New helper function, takes other part of
2e618c13 6752 work from add_psymbol_to_list - adds partial symbol to the given list.
680b56ce 6753 (add_psymbol_to_list): Call helper functions instead of doing work
2e618c13
AR
6754 here. If adding to global list, do not duplicate partial symbols in the
6755 partial symtab.
6756
c0b37c48
AR
67572008-06-05 Aleksandar Ristovski <aristovski@qnx.com>
6758
6759 * breakpoint.c (print_exception_catchpoint): Put 'exception' back to
6760 'exception caught|thrown' message.
6761
1e3a102a
JK
67622008-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6763
6764 * Makefile.in: Update dependencies.
6765 * dwarf2expr.c: New include "gdb_assert.h".
6766 (new_dwarf_expr_context): Initialize MAX_RECURSION_DEPTH.
6767 (dwarf_expr_eval): Sanity check the RECURSION_DEPTH count.
6768 (execute_stack_op): Error out on too large RECURSION_DEPTH.
6769 Increase/decrease RECURSION_DEPTH around the function.
6770
8d385431
DJ
67712008-06-05 Daniel Jacobowitz <dan@codesourcery.com>
6772
6773 * remote.c (get_offsets): Handle a single segment.
6774 * symfile.c (symfile_map_offsets_to_segments): Allow more bases
6775 than segments.
6776
93a57060
DJ
67772008-06-03 Daniel Jacobowitz <dan@codesourcery.com>
6778
6779 * solib-svr4.c (struct lm_info): Add lm_addr.
6780 (main_lm_addr): New.
6781 (svr4_default_sos): Set lm_addr.
6782 (svr4_current_sos): Set lm_addr and main_lm_addr.
6783 (svr4_fetch_objfile_link_map): Rewrite.
6784 (svr4_clear_solib): Clear main_lm_addr.
6785
609ba780 67862008-06-03 Michael Snyder <msnyder@redhat.com>
680b56ce 6787 Joseph Myers <joseph@codesourcery.com>
609ba780
JM
6788
6789 * mips-tdep.c (mips_eabi_return_value): Replace stub that always
6790 returned RETURN_VALUE_STRUCT_CONVENTION with a real function.
6791
c95f5026
JB
67922008-06-02 Roman Zippel <zippel@linux-m68k.org>
6793
6794 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Fix incorrect test.
6795
e4d8bc08
JB
67962008-06-02 Roman Zippel <zippel@linux-m68k.org>
6797
6798 * m68k-tdep.c (m68k_analyze_prologue): Fix length of lea insn.
6799
40adab56
JB
68002008-06-01 Joel Brobecker <brobecker@adacore.com>
6801
6802 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Do not
6803 treat pointers in data space as function descriptors if the
6804 target address is also in the data space.
6805
bfd66dd9
JB
68062008-05-30 Joel Brobecker <brobecker@adacore.com>
6807
6808 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Set
6809 the trad-frame register value for the SP register.
6810
7ea566be
MK
68112008-05-29 Mark Kettenis <kettenis@gnu.org>
6812
6813 * sparcnbsd-tdep.c, sparcobsd-tdep.c: Update for unwinder changes.
6814
fcac911a
JB
68152008-05-28 Joel Brobecker <brobecker@adacore.com>
6816
6817 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Improve the heuristic
6818 that identifies function descriptors outside of the .opd section.
6819
ade92717
AR
68202008-05-28 Aleksandar Ristovski <aristovski@qnx.com>
6821
6822 * breakpoint.c (print_exception_catchpoint): In CLI add 'Temporary' for
680b56ce 6823 temporary catchpoints. In MI add missing fields 'reason', 'disp',
ade92717
AR
6824 'bkptno'.
6825 (print_mention_exception_catchpoint): Add 'Temporary' for temporary
6826 catchpoints.
6827 (handle_gnu_v3_exceptions): Use tempflag.
6828
f7f9ae2c
VP
68292008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6830
6831 Refactor varobj_update interface.
680b56ce
AS
6832 * varobj.c (varobj_update): Report changes as vector. Also
6833 return not just a list of varobj, but a list of special structures
6834 that tell what exactly has changed.
6835 * varobj.h (enum varobj_update_error): Rename to
6836 varobj_scope_status.
6837 (struct varobj_update_result_t): New.
6838 (varobj_update): Adjust prototype.
6839 * mi/mi-cmd-var.c: Adjust for changes.
f7f9ae2c 6840
ea56f9c2
VP
68412008-05-28 Vladimir Prus <vladimir@codesourcery.com>
6842
6843 * varobj.c (varobj_update): Fix comment typo.
6844 Fix indentation.
6845
c7efd0b9
JB
68462008-05-26 Joel Brobecker <brobecker@adacore.com>
6847
6848 Set the symtab field of symbols read from ECOFF debugging entries.
6849 * mdebugread.c (add_symbol): Add new parameter symtab.
6850 (parse_symbol): Update calls to add_symbol throughout.
6851
2a2d4dc3
AS
68522008-05-27 Andreas Schwab <schwab@suse.de>
6853
6854 * symtab.h (enum address_class): Remove LOC_REGPARM and
6855 LOC_COMPUTED_ARG.
6856 (struct symbol): Add is_argument.
6857 (SYMBOL_IS_ARGUMENT): Define.
6858
6859 * ada-lang.c (ada_add_block_symbols): Use SYMBOL_IS_ARGUMENT.
6860 * buildsym.c (finish_block): Likewise.
6861 * stack.c (print_frame_args, print_block_frame_locals)
6862 (print_frame_arg_vars): Likewise.
6863 * symtab.c (lookup_block_symbol): Likewise.
6864 * tracepoint.c (add_local_symbols): Likewise.
6865 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6866
6867 * coffread.c (process_coff_symbol): Set SYMBOL_IS_ARGUMENT.
6868 * dwarf2read.c (new_symbol): Likewise.
6869 * mdebugread.c (parse_symbol): Likewise.
6870 * stabsread.c (define_symbol): Likewise.
6871
6872 * ada-exp.y (select_possible_type_sym): Don't handle LOC_REGPARM
6873 and LOC_COMPUTED_ARG.
6874 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6875 * ax-gdb.c (gen_var_ref): Likewise.
6876 * eval.c (evaluate_subexp_for_address): Likewise.
6877 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6878 * m2-exp.y (yylex): Likewise.
6879 * printcmd.c (address_info): Likewise.
6880 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6881 * tracepoint.c (collect_symbol, scope_info): Likewise.
6882
17ea7499
CES
68832008-05-24 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
6884
6885 * gdbarch.sh: Added new gdbarch struct
6886 core_regset_sections.
6887 * gdbarch.c: Refreshed.
6888 * gdbarch.h: Refreshed.
6889 * regset.h (core_regset_section): Declared.
6890 * linux-nat.c (linux_nat_do_thread_registers): Added
6891 support for the new gdbarch struct core_regset_sections.
6892 * utils.c (host_address_to_string): New function.
6893 * defs.h (host_address_to_string): New prototype.
6894 * i386-linux-tdep.c (i386_regset_rections): New register
6895 sections list for i386.
6896 (i386_linux_init_abi): Initialized new gdbarch struct
6897 core_regset_sections.
6898 * Makefile.in: Updated to reflect dependency changes.
6899 * ppc-linux-tdep.c (ppc_regset_sections): Register
6900 sections list for ppc.
6901 (ppc_linux_init_abi): Initialized new gdbarch struct
6902 core_regset_sections
6903
c4fc331b
AS
69042008-05-24 Andreas Schwab <schwab@suse.de>
6905
6906 * linespec.c (decode_objc): Save current language around call to
6907 get_selected_block.
6908
e936309c
JB
69092008-05-23 Joel Brobecker <brobecker@adacore.com>
6910
6911 * valprint.h (get_array_bounds): Renames get_array_low_bound.
6912 * valprint.c (get_array_bounds): Renames get_array_low_bound.
6913 Return the proper bound value if the array index type is an
6914 enumerated type. Compute the high bound if requested.
6915 (val_print_array_elements): Handle the case when the array
6916 element has a null size.
6917 * ada-valprint.c (print_optional_low_bound): Add handling
6918 for empty arrays or arrays of zero-size elements.
6919 (ada_val_print_array): New function, extracted out from
6920 ada_val_print_1 case TYPE_CODE_ARRAY, and enhanced to
6921 handle empty arrays and arrays of zero-size elements.
6922 (ada_val_print_1)[case TYPE_CODE_ARRAY]: Replace extracted-out
6923 code by call to ada_val_print_array.
6924 (ada_value_print): Remove handling of null array. The handling
6925 was incomplete and is now better handled by ada_val_print_array.
6926
50ee7535
MD
69272008-05-23 Markus Deuling <deuling@de.ibm.com>
6928
6929 * annotate.c (annotate_source, annotate_frame_begin): Replace
6930 deprecated_print_address_numeric with paddress.
6931 * cli/cli-cmds.c (list_command, edit_command): Likewise.
6932 * tui/tui-stack.c (tui_make_status_line): Likewise.
6933
6934 * defs.h (deprecated_print_address_numeric): Remove.
6935 * printcmd.c (deprecated_print_address_numeric): Remove.
6936 * maint.c (maint_print_section_info): Fix comment.
6937
d44e8473
MD
69382008-05-23 Markus Deuling <deuling@de.ibm.com>
6939
6940 * valprint.c (print_hex_chars, print_octal_chars, print_decimal_chars,
6941 print_binary_chars, print_char_chars): Add byte_order parameter and
6942 replace gdbarch_byte_order.
6943 (print_decimal_chars): Replace START_P, NOT_END_P and NEXT_P by their
6944 expressions and remove them. Remove unused TWO_TO_FOURTH.
6945 (val_print_type_code_int): Introduce gdbarch_byte_order to get at the
6946 endianness. Update call to print_hex_chars.
6947 * valprint.h (print_hex_chars, print_octal_chars, print_decimal_chars,
6948 print_binary_chars, print_char_chars): Add byte_order parameter.
6949 * printcmd.c (print_scalar_formatted): Introduce gdbarch_byte_order to
6950 get at the endianness. Update print_*_char calls to use byte_order.
6951
10f4ecb8
UW
69522008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6953
6954 * symtab.h (struct symbol): Make "aux_value" member a void pointer
6955 instead of a union.
6956 (SYMBOL_LOCATION_BATON): Update.
6957
c3b22bd0
UW
69582008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6959
6960 * symtab.h (enum address_class): Remove LOC_BASEREG and
6961 LOC_BASEREG_ARG.
6962 (struct symbol): Remove "basereg" member of "aux_value" union.
6963 (SYMBOL_BASEREG): Remove.
6964
6965 * ada-exp.y (select_possible_type_sym): Do not handle LOC_BASEREG
6966 or LOC_BASEREG_ARG.
6967 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6968 (ada_add_block_symbols): Likewise.
6969 * ax-gdb.c (gen_var_ref): Likewise.
6970 * buildsym.c (finish_block): Likewise.
6971 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6972 * m2-exp.y (yylex): Likewise.
6973 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6974 * printcmd.c (address_info): Likewise.
6975 * stack.c (print_frame_args, print_block_frame_locals): Likewise.
6976 (print_frame_arg_vars): Likewise.
6977 * symmisc.c (print_symbol): Likewise.
6978 * symtab.c (lookup_block_symbol): Likewise.
6979 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6980 (scope_info): Likewise.
6981
aa59ba6b
UW
69822008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
6983
6984 * symtab.h (enum address_class): Remove LOC_LOCAL_ARG.
6985
6986 * ada-exp.y (select_possible_type_sym): Do not handle LOC_LOCAL_ARG.
6987 * ada-lang.c (resolve_subexp, symtab_for_sym): Likewise.
6988 (ada_add_block_symbols): Likewise.
6989 * ax-gdb.c (gen_var_ref): Likewise.
6990 * buildsyms.c (finish_block): Likewise.
6991 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
6992 * m2-exp.y (yylex): Likewise.
6993 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
6994 * printcmd.c (address_info): Likewise.
6995 * stack.c (print_frame_args, print_frame_arg_vars): Likewise.
6996 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
6997 * symtab.c (lookup_block_symbol): Likewise.
6998 * tracepoint.c (collect_symbol, add_local_symbols): Likewise.
6999 (scope_info): Likewise.
7000
0bb4e8c4
UW
70012008-05-22 Ulrich Weigand <uweigand@de.ibm.com>
7002
7003 * symtab.h (enum address_class): Remove LOC_INDIRECT and
7004 LOC_HP_THREAD_LOCAL_STATIC.
7005
7006 * findvar.c (symbol_read_needs_frame, read_var_value): Do not
7007 handle LOC_INDIRECT or LOC_HP_THREAD_LOCAL_STATIC.
7008 (read_var_value): Likewise.
7009 * buildsym.c (finish_block): Likewise.
7010 * objfiles.c (objfile_relocate): Likewise.
7011 * printcmd.c (address_info): Likewise.
7012 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
7013 * tracepoint.c (scope_info): Likewise.
7014
9f61f19b
MG
70152008-05-21 Markus Deuling <deuling@de.ibm.com>
7016 Maxim Grigoriev <maxim2405@gmail.com>
7017
7018 * xtensa-tdep.c (xtensa_read_register): Remove.
7019 (xtensa_frame_cache): Get rid of xtensa_read_register. Pass extra
7020 argument litbase to call0_frame_cache().
7021 (call0_track_op, call0_analyze_prologue)
7022 (call0_frame_cache): Use extra argument litbase.
7023
0e479716
JB
70242008-05-21 Joel Brobecker <brobecker@adacore.com>
7025
7026 * infcmd.c (_initialize_infcmd): Add new "fin" alias for "finish".
7027
214be669
UW
70282008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
7029
7030 * frame.h (SIZEOF_FRAME_SAVED_REGS): Remove.
7031
0cd9ab92
UW
70322008-05-21 Ulrich Weigand <uweigand@de.ibm.com>
7033
7034 * alpha-mdebug-tdep.c: Include "trad-frame.h".
7035 (struct alpha_mdebug_unwind_cache): Change type of SAVED_REGS to
7036 struct trad_frame_saved_reg *.
7037 (alpha_mdebug_frame_unwind_cache): Allocate SAVED_REGS using
7038 trad_frame_alloc_saved_regs. Update accesses. Record previous
7039 value of SP as being vfp.
7040 (alpha_mdebug_frame_prev_register): Use trad_frame_get_prev_register.
7041 * Makefile.in (alpha-mdebug-tdep.o): Update dependencies.
7042
f52cb1b8
MD
70432008-05-21 Markus Deuling <deuling@de.ibm.com>
7044
7045 * score-tdep.c (score_print_insn): Get the current endianess from
7046 disassemble_info instead of gdbarch_byte_order.
7047
8fa75a5d
PA
70482008-05-21 Pedro Alves <pedro@codesourcery.com>
7049
7050 * frame.c (get_prev_frame_1): Build frame id before setting
7051 this_frame->prev_p, not after.
7052
e8e48118
NR
70532008-05-21 Nick Roberts <nickrob@snap.net.nz>
7054
7055 * annotate.c (annotate_new_thread): New function for new-thread
7056 annotation.
7057 * annotate.h: (annotate_new_thread): New extern.
7058 * thread.c (add_thread_with_info): Use it.
7059 * Makefile.in (thread.o): Add dependency on annotate.h.
7060
c57918b2
JB
70612008-05-20 Joel Brobecker <brobecker@adacore.com>
7062
7063 * win32-nat.c (win32_wait): Block the control-c event while
7064 waiting for a debug event.
7065
6c9353d3
PA
70662008-05-19 Pedro Alves <pedro@codesourcery.com>
7067
7068 * symtab.h (lookup_symbol_in_language): Update comment.
7069 * symtab.c (lookup_symbol_aux_block): Update comment.
7070 * ada-lang.c (ada_lookup_symbol_list): Update comment.
7071
2570f2b7
UW
70722008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7073
7074 * symtab.h (lookup_symbol_in_language): Remove SYMTAB parameter.
7075 (lookup_symbol): Likewise.
7076 * symtab.c (lookup_symbol_in_language): Remove SYMTAB parameter.
7077 (lookup_symbol): Likewise.
7078 (search_symbols): Update.
7079
7080 * linespec.c (find_methods, collect_methods): Update.
7081 (add_matching_methods, add_constructors): Update.
7082 (decode_compound, decode_dollar, decode_variable): Update.
7083 (lookup_prefix_sym): Update.
7084
7085 (symbol_found): Remove SYM_SYMTAB parameter.
7086 Use SYMBOL_SYMTAB (sym) instead.
7087
7088 * gdbtypes.c (lookup_typename): Update.
7089 (lookup_struct, lookup_union, lookup_enum): Update.
7090 (lookup_template_type): Update.
7091 (check_typedef): Update.
7092 * language.c (lang_bool_type): Update.
7093 * mdebugread.c (parse_procedure): Update.
7094 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7095 * parse.c (write_dollar_variable): Update.
7096 * printcmd.c (address_info): Update.
7097 * source.c (select_source_symtab): Update.
7098 * stack.c (print_frame_args, print_frame_arg_vars): Update.
7099 * valops.c (find_function_in_inferior): Update.
7100 (value_struct_elt_for_reference): Update.
7101 * value.c (value_static_field, value_fn_field): Update.
7102
7103 * alpha-mdebug-tdep.c (find_proc_desc): Update.
7104 * arm-tdep.c (arm_skip_prologue): Update.
7105 * mt-tdep.c (mt_skip_prologue): Update.
7106 * xstormy16-tdep.c (xstormy16_skip_prologue): Update.
7107
7108 * ada-lang.h (struct ada_symbol_info): Remove SYMTAB member.
7109 * ada-lang.c (ada_add_block_symbols): Remove SYMTAB parameter.
7110 (add_defn_to_vec): Likewise.
7111 (ada_add_block_symbols): Likewise.
7112 (lookup_cached_symbol, cache_symbol): Likewise.
7113 (standard_lookup): Update.
7114 (ada_lookup_symbol_list): Update.
7115
7116 * c-valprint.c (c_val_print): Update.
7117 * cp-support.c (cp_lookup_rtti_type): Update.
7118 * jv-lang.c (java_lookup_class, get_java_object_type): Update.
7119 * objc-lang.c (lookup_struct_typedef, find_imps): Update.
7120 * p-valprint.c (pascal_val_print): Update.
7121 * scm-lang.c (scm_lookup_name): Update.
7122
7123 * c-exp.y: Update.
7124 * f-exp.y: Update.
7125 * jv-exp.y: Update.
7126 * m2-exp.y: Update.
7127 * objc-exp.y: Update.
7128 * p-exp.y: Update.
7129
21b556f4
UW
71302008-05-19 Ulrich Weigand <uweigand@de.ibm.com>
7131
7132 * language.h (struct language_defn): Remove SYMTAB parameter from
7133 la_lookup_symbol_nonlocal callback function pointer.
7134
7135 * ada-lang.h (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7136 (ada_lookup_encoded_symbol): Likewise.
7137 * ada-lang.c (ada_lookup_encoded_symbol): Remove SYMTAB parameter.
7138 Always call fixup_symbol_section.
7139 (ada_lookup_symbol): Remove SYMTAB parameter.
7140 (ada_lookup_symbol_nonlocal): Likewise.
7141 * ada-exp.y (write_object_renaming): Update.
7142 (find_primitive_type): Likewise.
7143
7144 * cp-support.h (cp_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7145 (cp_lookup_symbol_namespace): Likewise.
7146 * cp-namespace.c (lookup_namespace_scope): Remove SYMTAB parameter.
7147 (lookup_symbol_file): Likewise.
7148 (lookup_possible_namespace_symbol): Likewise.
7149 (cp_lookup_symbol_nonlocal): Likewise.
7150 (cp_lookup_symbol_namespace): Likewise.
7151 (cp_lookup_nested_type): Update.
7152
7153 * scm-valprint.c (scm_inferior_print): Update.
7154 * valops.c (value_maybe_namespace_elt): Update.
7155
7156 * solist.h (struct target_so_ops): Remove SYMTAB parameter from
7157 lookup_lib_global_symbol callback function pointer.
7158 (solib_global_lookup): Remove SYMTAB parameter.
7159 * solib.c (solib_global_lookup): Remove SYMTAB parameter.
7160 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
7161
7162 * symtab.h (basic_lookup_symbol_nonlocal): Remove SYMTAB parameter.
7163 (lookup_symbol_static): Likewise.
7164 (lookup_symbol_global): Likewise.
7165 (lookup_symbol_aux_block): Likewise.
7166 (lookup_global_symbol_from_objfile): Likewise.
7167 * symtab.c (lookup_symbol_aux): Remove SYMTAB parameter.
7168 (lookup_symbol_aux_local): Likewise.
7169 (lookup_symbol_aux_block): Likewise.
7170 (lookup_symbol_aux_symtabs): Likewise.
7171 (lookup_symbol_aux_psymtabs): Likewise.
7172 (lookup_global_symbol_from_objfile): Likewise.
7173 (basic_lookup_symbol_nonlocal): Likewise.
7174 (lookup_symbol_static): Likewise.
7175 (lookup_symbol_global): Likewise.
7176
7177 (lookup_symbol_in_language): Do not pass SYMTAB to lookup_symbol_aux.
7178
39237dd1
PA
71792008-05-17 Pedro Alves <pedro@codesourcery.com>
7180
7181 * remote.c (init_extended_remote_ops): Fix typo.
7182
7c0d47a5
PA
71832008-05-16 Pedro Alves <pedro@codesourcery.com>
7184
7185 * NEWS: Mention new DICOS x86 target configuration.
7186
907fc202
UW
71872008-05-16 Pedro Alves <pedro@codesourcery.com>
7188 Ulrich Weigand <uweigand@de.ibm.com>
7189
7190 * minsyms.c (lookup_minimal_symbol_by_pc_name): New function.
7191 * symtab.h (lookup_minimal_symbol_by_pc_name): Add prototype.
7192
7193 * symtab.c (fixup_section): Remove prototype. Add ADDR parameter;
7194 use it instead of ginfo->value.address. Look up minimal symbol by
7195 address and name. Assume OBJFILE is non-NULL.
7196 (fixup_symbol_section): Ensure we always have an objfile to look
7197 into. Extract and pass to fixup_section the symbol's address that
7198 will match the minimal symbol's address.
7199 (fixup_psymbol_section): Likewise.
7200
7201 (find_pc_sect_psymtab): Fall back to non-addrmap case when debugging
7202 overlays and the addrmap returned the wrong section.
7203
7204 * dwarf2read.c (var_decode_location): Set SYMBOL_CLASS before
7205 calling fixup_symbol_section.
7206
42848c96
UW
72072008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7208
7209 * minsyms.c: Include "target.h".
7210 (find_solib_trampoline_target): Handle minimal symbols pointing
7211 to function descriptors as well.
7212 * Makefile.in (minsyms.o): Update dependencies.
7213
7214 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
7215 (ppc64_standard_linkage1): ... this. Fix optional instructions.
7216 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
7217 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
7218 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
7219 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
7220 (ppc64_standard_linkage_target): Rename to ...
7221 (ppc64_standard_linkage1_target): ... this.
7222 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
7223 (ppc64_skip_trampoline_code): Support three variants of standard
7224 linkage stubs. Call find_solib_trampoline_target to handle
7225 glink stubs.
7226
74d1f063
UW
72272008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7228
7229 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
7230 ppc64_sysv_abi_adjust_breakpoint_address.
7231 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7232 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
7233
8526f328
UW
72342008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
7235
7236 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
7237 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
7238 of ppc_linux_skip_trampoline_code.
7239
ba2b1c56
DJ
72402008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
7241
7242 * gdbarch.sh: Delete dwarf_reg_to_regnum.
7243 * gdbarch.c, gdbarch.h: Regenerated.
7244 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
7245 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
7246 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
7247
4fdebdd0
PA
72482008-05-15 Pedro Alves <pedro@codesourcery.com>
7249
7250 * linux-nat.c (trap_ptid): Delete.
7251 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
7252 Adjust.
7253 * linux-thread-db.c (thread_db_wait): Adjust.
7254
bc882aa9
JB
72552008-05-15 Joel Brobecker <brobecker@adacore.com>
7256
7257 * linespec.c (decode_line_1): Fix a couple of comments.
7258
83b94be5
AM
72592008-05-15 Alan Modra <amodra@bigpond.net.au>
7260
7261 * dbxread.c: Formatting.
7262 (INTERNALIZE_SYMBOL): Init n_other.
7263 (set_namestring): Take pointer to nlist arg rather than struct
7264 copy. Update all callers.
7265
87669130
AS
72662008-05-15 Andreas Schwab <schwab@suse.de>
7267
7268 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
7269 (dwarf2read.o): Add $(addrmap_h).
7270
00d5f93a
UW
72712008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
7272
7273 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
7274 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
7275 to handle ppc32 PLT entries.
7276 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
7277 only on ppc64.
7278
2eaf8d2a
DJ
72792008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
7280
7281 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
7282 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
7283 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
7284 (lookup_minimal_symbol_by_pc_section): Use
7285 lookup_minimal_symbol_by_pc_section_1.
7286 (lookup_solib_trampoline_symbol_by_pc): Likewise.
7287
20c62566
JB
72882008-05-13 Joel Brobecker <brobecker@adacore.com>
7289
7290 * findcmd.c: Add #include "gdb_stdint.h".
7291 * Makefile.in (findcmd.o): Update dependencies.
7292
87a7da84
DM
72932008-05-11 David S. Miller <davem@davemloft.net>
7294
de0c3d9d
DM
7295 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
7296 long double size override, Linux does use 128-bit now.
7297
e8467b5a
DM
7298 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
7299 (sparc_linux_write_pc): New function.
7300 (sparc32_linux_init_abi): Register it.
7301 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
7302 (sparc64_linux_write_pc): New function.
7303 (sparc64_linux_init_abi): Register it.
7304
87a7da84
DM
7305 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
7306 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
7307
8a4c2d24
UW
73082008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7309
7310 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
7311 and info.tdep_info before calling gdbarch_init_osabi.
7312
003f3813
JB
73132008-05-09 Joel Brobecker <brobecker@adacore.com>
7314
7315 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
7316 the type of the right hand side of the assignment to the type
7317 of the left hand side if the left hand side is a convenience
7318 variable.
7319
7ae0e2a2
UW
73202008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
7321
7322 * NEWS: Mention gdbserver bi-arch capability.
7323
08388c79
DE
73242008-05-09 Doug Evans <dje@google.com>
7325
7326 New "find" command.
7327 * NEWS: Document find command and qSearch:memory packet.
7328 * Makefile.in (SFILES): Add findcmd.c.
7329 (COMMON_OBJS): Add findcmd.o.
7330 (findcmd.o): New rule.
7331 * findcmd.c: New file.
7332 * target.h (target_ops): New member to_search_memory.
7333 (simple_search_memory): Declare.
7334 (target_search_memory): Declare.
7335 * target.c (simple_search_memory): New fn.
7336 (target_search_memory): New fn.
7337 * remote.c (PACKET_qSearch_memory): New packet kind.
7338 (remote_search_memory): New fn.
7339 (init_remote_ops): Init to_search_memory.
7340 (init_extended_remote_ops): Ditto.
7341 (_initialize_remote): Add qSearch:memory packet config command.
7342
11c68c47
EZ
73432008-05-09 Eli Zaretskii <eliz@gnu.org>
7344
7345 * thread.c (_initialize_thread): Don't use commas and periods in
7346 first line of doc string of "set/show print thread-events".
7347
6834c9bb
JB
73482008-05-08 Joel Brobecker <brobecker@adacore.com>
7349
7350 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
7351 Update for unwinder changes.
7352
86c31399
JB
73532008-05-08 Joel Brobecker <brobecker@adacore.com>
7354
7355 * frame.c (get_frame_base_address, get_frame_locals_address)
7356 (get_frame_args_address): Pass the correct frame when calling
7357 frame_base_find_by_frame.
7358
96ef3384
UW
73592008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
7360
7361 * remote.c (extended_remote_attach_1): Call target_find_description.
7362
45280a52
DJ
73632008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
7364
7365 * remote.c (extended_remote_create_inferior_1): Clean up
7366 before marking the target running.
7367
227e86ad
JB
73682008-05-08 Joel Brobecker <brobecker@adacore.com>
7369
7370 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
7371 changes.
7372
236369e7
JB
73732008-05-07 Joel Brobecker <brobecker@adacore.com>
7374
7375 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
7376 sparc64-sol2-tdep.c: Update for unwinder changes.
7377
de237128
DJ
73782008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
7379
7380 * cp-support.c (mangled_name_to_comp): Initialize storage.
7381 (unqualified_name_from_comp): Likewise.
7382
4fff2411
JZ
73832008-05-07 Jie Zhang <jie.zhang@analog.com>
7384
7385 * remote.c (remote_insert_breakpoint): Call get_remote_state
7386 after gdbarch_breakpoint_from_pc is called.
7387 (remote_insert_hw_breakpoint): Likewise.
7388
d8ca156b
JB
73892008-05-06 Joel Brobecker <brobecker@adacore.com>
7390
7391 * valprint.c (val_print): Add new language parameter and use it
7392 instead of using the current_language. Update calls to val_print
7393 throughout.
7394 (common_val_print): Add new langauge parameter and pass it to
7395 val_print.
7396 * value.h (struct language_defn): Add opaque declaration.
7397 (val_print, common_val_print): Update declarations.
7398 * stack.c (print_frame_args): Update call to common_val_print
7399 using the appropriate language.
7400 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
7401 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
7402 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
7403 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
7404 #include "language.h" if necessary.
7405 Update calls to val_print and common_val_print.
7406 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
7407 Update dependencies.
7408
b1e6fd19
JB
74092008-05-06 Joel Brobecker <brobecker@adacore.com>
7410
7411 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
7412 pointing inside a non-executable section as function descriptors.
7413
02b19d84
PA
74142008-05-06 Pedro Alves <pedro@codesourcery.com>
7415
7416 * inf-loop.c (inferior_event_handler): Run all continuations and
7417 print any language change before running the breakpoint commands.
7418
15c1e57f
JB
74192008-05-06 Joel Brobecker <brobecker@adacore.com>
7420
7421 * frame-unwind.c (frame_unwind_got_bytes): New function.
7422 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
7423 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
7424 for unwinder changes.
7425
d14508fe
DE
74262008-05-05 Doug Evans <dje@google.com>
7427
7428 * NEWS: Mention new /m modifier for disassemble command.
7429 * cli/cli-cmds.c (print_disassembly): New function.
7430 (disassemble_current_function): New function
7431 (disassemble_command): Recognize /m modifier, print mixed
7432 source+assembly.
7433 (init_cli_cmds): Update disassemble help text.
7434
5142f611
MG
74352008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
7436
7437 * xtensa-tdep.c: Update for unwinder changes.
7438
f36bf22c
AS
74392008-05-05 Andreas Schwab <schwab@suse.de>
7440
7441 Update m68k port for unwinder changes.
7442 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
7443 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
7444 (m68k_frame_unwind): Use default_frame_sniffer.
7445 (m68k_frame_sniffer): Remove.
7446 (m68k_frame_base_address): Expect this_frame.
7447 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
7448 this_frame.
7449 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
7450 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
7451 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
7452 parameter instead of pc value.
7453 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
7454 Expect this_frame.
7455 (m68k_linux_sigtramp_frame_this_id)
7456 (m68k_linux_sigtramp_frame_prev_register)
7457 (m68k_linux_sigtramp_frame_sniffer): Update signature.
7458 (m68k_linux_sigtramp_frame_unwind): Use
7459 m68k_linux_sigtramp_frame_sniffer.
7460 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
7461
7462 * m68klinux-nat.c (store_register): Fix typo.
7463
b3dc826b
PA
74642008-05-05 Pedro Alves <pedro@codesourcery.com>
7465
7466 * infcmd.c (step_1): Put thread id on the stack to avoid possible
7467 NULL dereferencing.
7468
6528a9ea
LM
74692008-05-05 Luis Machado <luisgpm@br.ibm.com>
7470
7471 * symfile.c (reread_symbols): Update objfile's entry point.
7472
5eeb2539
AR
74732008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
7474 Joel Brobecker <brobecker@adacore.com>
1f906a60 7475
5eeb2539
AR
7476 * ada-lang.c: Update throughout to use symbol_matches_domain
7477 instead of matching the symbol domain explictly.
7478 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 7479 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 7480 class as typedefs. See lookup_partial_symbol function.
f36bf22c 7481 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
7482 symbol for the typedef. See lookup_block_symbol.
7483 * symtab.c (symbol_matches_domain): New function, takes care
7484 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
7485 (lookup_partial_symbol): Use symbol_matches_domain to see if the
7486 found psym domain matches the given domain.
7487 (lookup_block_symbol): Likewise.
7488
e2b7ddea
VP
74892008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7490
680b56ce
AS
7491 * top.c (command_line_handler_continuation): Remove.
7492 (execute_command): Do not install the above.
e2b7ddea 7493
fcfb8b02
VP
74942008-05-05 Vladimir Prus <vladimir@codesourcery.com>
7495
7496 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
7497 and catch all exceptions from it.
7498 * top.c (command_line_handler_continuation): Don't
7499 call bpstat_do_action here.
7500
f792889a
DJ
75012008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7502
7503 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
7504 (struct die_info): Remove type.
7505 (read_type_die, read_typedef, read_base_type, read_subrange_type)
7506 (read_structure_type, read_enumeration_type, read_array_type)
7507 (read_tag_pointer_type, read_tag_ptr_to_member_type)
7508 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
7509 (read_tag_string_type, read_subroutine_type, read_set_type)
7510 (read_unspecified_type): Delete prototypes. Remove check for
7511 already-loaded type. Return the new type.
7512 (set_die_type): Return the new type.
7513 (reset_die_and_siblings_types): Delete.
7514 (load_comp_unit, load_full_comp_unit): Set type_hash.
7515 (process_queue): Remove call to reset_die_and_siblings_types.
7516 (process_die): Do not read most types here. Use read_type_die
7517 for others.
7518 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
7519 (quirk_gcc_member_function_pointer): Return the new type.
7520 (process_structure_scope, process_enumeration_scope): Use
7521 get_die_type and read the DIE's type.
7522 (read_full_die): Do not initialize die->type.
7523 (tag_type_to_type): Use read_type_die.
7524 (read_type_die): Check for already defined types. Return the
7525 type.
7526 (determine_prefix): Use get_die_type.
7527 (set_die_type): Return the type.
7528 (get_die_type): Take a CU argument. Check for no type_hash.
7529
e7030f15
DJ
75302008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
7531
7532 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
7533 locals.
7534
611c83ae
PA
75352008-05-04 Pedro Alves <pedro@codesourcery.com>
7536
7537 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
7538 and bp_longjmp_resume breakpoints.
7539 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
7540 meaningful.
7541 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
7542 breakpoints. Create bp_longjmp breakpoints as momentary
7543 breakpoints.
7544 (enable_longjmp_breakpoint): Delete.
7545 (set_longjmp_breakpoint): New.
7546 (disable_longjmp_breakpoint): Delete.
7547 (delete_longjmp_breakpoint): New.
7548 (set_longjmp_resume_breakpoint): Delete.
7549 (set_momentary_breakpoint_at_pc): New.
7550 (breakpoint_re_set_one): Don't delete bp_longjmp and
7551 bp_longjmp_resume breakpoints.
7552 (breakpoint_re_set): Don't create longjmp and longjmp-resume
7553 breakpoints.
7554
7555 * infrun.c (step_resume_breakpoint): Add comment.
7556 (struct execution_control_state): Delete handling_longjmp member.
7557 (init_execution_control_state). Don't clear handling_longjmp.
7558 (context_switch): Don't context switch handling_longjmp.
7559 (handle_inferior_event): If handling a bp_longjmp breakpoint,
7560 create a bp_longjmp_resume breakpoint, and set it as current
7561 step_resume_breakpoint, then step over the longjmp breakpoint. If
7562 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
7563 breakpoint, delete the longjmp-resume breakpoint, and stop
7564 stepping.
7565 (currently_stepping): Remove handling_longjmp from expression.
7566 (insert_step_resume_breakpoint_at_sal): Update comment.
7567 (insert_longjmp_resume_breakpoint): New.
7568
7569 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
7570 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
7571 declarations.
7572 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
7573 (set_longjmp_resume_breakpoint): Delete declaration.
7574
7575 * gdbthread.h (save_infrun_state): Remove handling_longjmp
7576 parameter.
7577 (load_infrun_state): Delete *handling_longjmp parameter.
7578 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
7579 Update body.
7580 (load_infrun_state): Delete *handling_longjmp parameter. Update
7581 body.
7582
7583 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
7584 (delete_longjmp_breakpoint_cleanup): New.
7585 (step_1): Call set_longjmp_breakpoint instead of
7586 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
7587 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
7588 (step_1_continuation): Pass thread id in the continuation args to
7589 step_once.
7590 (step_once): Add thread parameter. Pass thread id the the
7591 continuation.
7592
85cbf3d3
JK
75932008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7594
7595 Set CU BASE_ADDRESS already from partial DIEs.
7596 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
7597 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
7598 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
7599 from these variables if it was still unset.
7600
ff013f42
JK
7601 * Makefile.in: Update dependencies.
7602 * dwarf2read.c: Include "addrmap.h"
7603 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
7604 (dwarf2_ranges_read): New prototype.
7605 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
7606 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
7607 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
7608 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
7609 comment for it. Add the found ranges to RANGES_PST. New variable
7610 BASEADDR, initialize it the common way.
7611 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
7612 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
7613 HAS_RANGES_OFFSET for the later processing.
7614 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
7615 * symtab.c: Include "addrmap.h"
7616 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
7617 Move the psymtab locator into ...
7618 (find_pc_sect_psymtab_closer): ... a new function.
7619
a7f1256d
UW
76202008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7621
7622 * arch-utils.c (gdbarch_update_p): Use default values for
7623 info.abfd and info.target_desc if they are NULL.
7624 (gdbarch_from_bfd): Remove assertion.
7625 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
7626 using the current target description.
7627 (gdbarch_info_fill): Do not use default values for info->abfd
7628 and info->target_desc.
7629
b2de52bb
JK
76302008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7631
7632 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
7633
515630c5
UW
76342008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
7635
7636 * inferior.h (read_pc_pid, write_pc_pid): Remove.
7637 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
7638
7639 * regcache.c (read_pc_pid): Remove, replace by ...
7640 (regcache_read_pc): ... this function.
7641 (write_pc_pid): Remove, replace by ...
7642 (regcache_write_pc): ... this function.
7643 (read_pc, write_pc): Update.
7644
7645 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
7646 write_pc_pid by regcache_read_pc and regcache_write_pc.
7647 (displaced_step_fixup): Likewise.
7648 (resume): Likewise. Use regcache arch instead of current_gdbarch.
7649 (prepare_to_proceed): Likewise.
7650 (proceed): Likewise.
7651 (adjust_pc_after_break): Likewise.
7652 (handle_inferior_event): Likewise.
7653
7654 * linux-nat.c (cancel_breakpoint): Likewise.
7655 * linux-thread-db.c (check_event): Likewise.
7656 * aix-thread.c (aix_thread_wait): Likewise.
7657 * tracepoint.c (trace_dump_command): Likewise.
7658
ebd3bcc1
JK
76592008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7660
7661 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
7662 SYMBOL_LOCATION_BATON.
7663
c47ffbe3
VP
76642008-05-04 Vladimir Prus <vladimir@codesourcery.com>
7665
f78bff48
VP
7666 * target.h (struct target_ops): New field to_auxv_parse.
7667 * auxv.c (default_auxv_parse): New, renamed from previous
7668 target_auxv_parse.
7669 (target_auxv_parse): Try to call target method. Fallback to
7670 default_auxv_parse if not found.
7671 * procfs.c (procfs_auxv_parse): New.
7672 (init_procfs_ops): On Solaris, in 64-bit mode, install
7673 procfs_auxv_parse.
c47ffbe3 7674
35076fa0
AN
76752008-05-03 Adam Nemet <anemet@caviumnetworks.com>
7676
7677 * symfile.c (add_symbol_file_command): Use paddress rather than
7678 hex_string to print the address.
7679
5b197912
UW
76802008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7681
7682 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
7683 return the null frame ID to terminate the backtrace.
7684
4a7622d1
UW
76852008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7686
7687 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
7688 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
7689 (SIG_FRAME_PC_OFFSET): Likewise.
7690 (SIG_FRAME_LR_OFFSET): Likewise.
7691 (SIG_FRAME_FP_OFFSET): Likewise.
7692 (rs6000_push_dummy_call): Likewise.
7693 (rs6000_return_value): Likewise.
7694 (rs6000_convert_from_func_ptr_addr): Likewise.
7695 (branch_dest, rs6000_software_single_step): Likewise.
7696 (deal_with_atomic_sequence): Rename to ...
7697 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
7698 Do not call branch_dest; inline required parts of that function.
7699 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
7700 with SYMBOL_LINKAGE_NAME.
7701 (struct reg, regsize): Delete.
7702 (read_memory_addr): Delete; inline into callers.
7703 (rs6000_skip_prologue): Move after skip_prologue.
7704 (skip_prologue): Remove prototype.
7705 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
7706 initialization as if this variable were true. Do not install
7707 ppc64_sysv_abi_adjust_breakpoint_address.
7708
7709 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
7710 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
7711 and "breakpoint.h".
7712 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
7713 (SIG_FRAME_PC_OFFSET): Likewise.
7714 (SIG_FRAME_LR_OFFSET): Likewise.
7715 (SIG_FRAME_FP_OFFSET): Likewise.
7716 (rs6000_push_dummy_call): Likewise.
7717 (rs6000_return_value): Likewise.
7718 (rs6000_convert_from_func_ptr_addr): Likewise.
7719 (branch_dest, rs6000_software_single_step): Likewise. Replace
7720 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
7721 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
7722 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
7723 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
7724 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
7725
7726 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
7727 (AIX_TEXT_SEGMENT_BASE): New macro.
7728 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
7729 by AIX_TEXT_SEGMENT_BASE.
7730
7731 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
7732 (struct gdbarch_tdep): Remove text_segment_base member.
7733 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
7734 ppc64_sysv_abi_adjust_breakpoint_address.
7735
7736 * Makefile.in (rs6000-tdep.o): Update dependencies.
7737 (rs6000-aix-tdep.o): Likewise.
7738
938f5214
TJB
77392008-05-03 Luis Machado <luisgpm@br.ibm.com>
7740 Thiago Jung Bauermann <bauerman@br.ibm.com>
7741
7742 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
7743 * doublest.c (convert_typed_floating): Fix typo in comment.
7744 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7745 * frame-unwind.h (frame_sniffer_ftype): Likewise.
7746 * frame.c (frame_unwind_address_in_block): Likewise.
7747 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
7748 * symtab.h (struct symbol): Likewise.
7749 * tramp-frame.h (struct trad_frame_cache): Likewise.
7750 * value.c (allocate_repeat_value): Likewise.
7751
0b02b92d
UW
77522008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7753
7754 * infrun.c (handle_inferior_event): Do not insert breakpoints at
7755 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
7756
d705c43c
PA
77572008-05-03 Pedro Alves <pedro@codesourcery.com>
7758
7759 * parse.c (parse_exp_in_context): Don't override
7760 expression_context_pc if get_selected_block returned a valid
7761 block.
7762
d6350901
DJ
77632008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7764
7765 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
7766 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
7767 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
7768 Delete.
7769 * c-typeprint.c (c_type_print_base): Delete handling of template
7770 instantiations.
7771 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
7772 (METHOD_PTR_TO_VOFFSET): Delete.
7773 * defs.h (QUIT_FIXME): Delete.
7774 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
7775 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
7776 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
7777 ninstantiations, and instantiations.
7778 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
7779 (TYPE_FN_FIELD_INLINED): Delete.
7780 * srec.h (SREC_BINARY): Delete.
7781 * symtab.c (symbol_init_demangled_name): Delete.
7782 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
7783 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
7784 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
7785 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
7786 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
7787 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
7788 * target.h (enum thread_control_capabilities): Delete tc_switch.
7789 (target_can_switch_threads): Delete.
7790
30510692
DJ
77912008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
7792
7793 * Makefile.in (objfiles.o): Update.
7794 * exec.c (exec_set_section_address): Support p->addr != 0.
7795 * objfiles.c (objfile_relocate): Update exec_ops section
7796 addresses.
7797 * symfile.c (place_section): Move exec_set_section_address call...
7798 (default_symfile_offsets): ...to here.
7799
7284e1be
UW
78002008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
7801
7802 * Makefile.in (ppc_linux_tdep_h): New macro.
7803 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
7804 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
7805 (powerpc_e500l_c): Likewise.
7806 (ppc-linux-nat.o): Update dependencies.
7807 (ppc-linux-tdep.o): Update dependencies.
7808 (rs6000-tdep.o): Update dependencies.
7809
7810 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
7811 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
7812 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
7813 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
7814 (tdesc_powerpc_e500): Remove.
7815
7816 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
7817 and "features/rs6000/powerpc-altivec64.c".
7818 (ppc_supply_reg, ppc_collect_reg): Make global.
7819 (variants): Use tdesc_powerpc_32 for "powerpc" and
7820 tdesc_powerpc_altivec64 for "powerpc64".
7821 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
7822
7823 * ppc-linux-tdep.h: New file.
7824
7825 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
7826 Include "features/rs6000/powerpc-32l.c".
7827 Include "features/rs6000/powerpc-altivec32l.c".
7828 Include "features/rs6000/powerpc-64l.c".
7829 Include "features/rs6000/powerpc-altivec64l.c".
7830 Include "features/rs6000/powerpc-e500l.c".
7831 (ppc_linux_supply_gregset): New function.
7832 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
7833 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
7834 (ppc64_linux_gregset): Likewise.
7835 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
7836 (ppc_linux_trap_reg_p): New function.
7837 (ppc_linux_write_pc): New function.
7838 (ppc_linux_core_read_description): New function.
7839 (ppc_linux_init_abi): Install ppc_linux_write_pc and
7840 ppc_linux_core_read_description. Install orig_r3 and trap
7841 registers if present in the target description.
7842 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
7843
7844 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
7845 (PT_ORIG_R3, PT_TRAP): Define if necessary.
7846 (ppc_register_u_addr): Handle orig_r3 and trap registers.
7847 (fetch_ppc_registers): Likewise.
7848 (store_ppc_registers): Likewise.
7849 (store_register): Likewise.
7850 (ppc_linux_read_description): Check whether AltiVec is supported.
7851 Check whether inferior is 32-bit or 64-bit. Return the appropriate
7852 Linux target description.
7853
7854 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
7855 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
7856 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
7857 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
7858 rs6000/powerpc-e500. Update -expedite variables accordingly.
7859
7860 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
7861 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
7862 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
7863 * features/rs6000/powerpc-e500.c: Regenerate.
7864 * features/rs6000/powerpc-32.c: Regenerate.
7865 * features/rs6000/powerpc-64.c: Regenerate.
7866
7867 * features/rs6000/power-linux.xml: New file.
7868 * features/rs6000/power64-linux.xml: New file.
7869 * features/rs6000/powerpc-32l.xml: New file.
7870 * features/rs6000/powerpc-altivec32l.xml: New file.
7871 * features/rs6000/powerpc-64l.xml: New file.
7872 * features/rs6000/powerpc-altivec64l.xml: New file.
7873 * features/rs6000/powerpc-e500l.xml: New file.
7874 * features/rs6000/powerpc-32l.c: New (generated) file.
7875 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
7876 * features/rs6000/powerpc-64l.c: New (generated) file.
7877 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
7878 * features/rs6000/powerpc-e500l.xml: New (generated) file.
7879
7880 * regformats/reg-ppc.dat: Remove.
7881 * regformats/reg-ppc64.dat: Remove.
7882 * regformats/rs6000/powerpc-32.dat: Remove.
7883 * regformats/rs6000/powerpc-64.dat: Remove.
7884 * regformats/rs6000/powerpc-e500.dat: Remove.
7885 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
7886 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
7887 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
7888 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
7889 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
7890
063bfe2e
VP
78912008-05-03 Pedro Alves <pedro@codesourcery.com>
7892
7893 * thread.c (delete_thread): Call observer_notify_thread_exit.
680b56ce
AS
7894 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
7895 thread_exit observer.
7896 (mi_thread_exit): New.
063bfe2e 7897
f132ba9d
TJB
78982008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
7899
7900 * breakpoint.c (create_exception_catchpoint): Remove prototype
7901 for already deleted function.
7902 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
7903 * frame.h (show_stack_frame): Remove prototype.
7904 * stack.c (show_stack_frame): Remove empty, unused function.
7905 * source.c (symtab_to_fullname, print_source_lines): Small fix
7906 in comment.
7907 * value.c (show_values): Update comments to mention "show values"
7908 command instead of "info history".
7909
bccdca4a
UW
79102008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7911
7912 * linespec.c: Include "target.h".
7913 (minsym_found): Handle minimal symbols pointing to function
7914 descriptors. Use find_function_start_pc.
7915 * minsyms.c (msymbol_objfile): New function.
7916 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
7917 to function descriptors.
7918 * symtab.c (fixup_section): Only use minimal symbol at the same
7919 address to determine section of a symbol.
7920 (find_function_start_pc): New function.
7921 (find_function_start_sal): Use it.
7922 * symtab.h (msymbol_objfile): Add prototype.
7923 (find_function_start_pc): Likewise.
7924 * value.c: Include "objfiles.h".
7925 (value_fn_field): Handle minimal symbols pointing to function
680b56ce 7926 descriptors.
bccdca4a
UW
7927 * Makefile.in (linespec.o): Update dependencies.
7928 (value.o): Likewise.
7929
de4d072f
JB
79302008-05-02 Joel Brobecker <brobecker@adacore.com>
7931
7932 * ada-lang.c (unwrap_value): Handle the case where the "F" field
7933 inside a PAD type is a bitfield.
7934
93d4208d
UW
79352008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
7936
7937 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
7938 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7939 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7940 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
7941 Allow typedefs when checking for function pointer arguments.
7942 Right-align small structs passed on the stack.
7943 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
7944 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
7945 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
7946
60c5725c
DJ
79472008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7948
7949 * Makefile.in (arm-tdep.o): Update.
7950 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
7951 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
7952 (arm_pc_is_thumb): Use mapping symbols.
7953 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
7954 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
7955 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
7956 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
7957 * gdbarch.sh: Add record_special_symbol.
7958 * gdbarch.c, gdbarch.h: Regenerated.
7959 * objfiles.c (struct objfile_data): Add cleanup member.
7960 (register_objfile_data_with_cleanup): New function, from
7961 register_objfile_data.
7962 (register_objfile_data): Use it.
7963 (objfile_free_data): Call clear_objfile_data.
7964 (clear_objfile_data): Call cleanup functions.
7965 * objfiles.h (register_objfile_data_with_cleanup): Declare.
7966
574dffa2
DJ
79672008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7968
7969 * objfiles.c (init_entry_point_info): Handle shared libraries.
7970
2c404490
DJ
79712008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
7972
7973 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
7974 lowest_pc.
7975
237fc4c9
PA
79762008-05-02 Jim Blandy <jimb@codesourcery.com>
7977 Pedro Alves <pedro@codesourcery.com>
7978
7979 Implement displaced stepping.
7980
7981 * gdbarch.sh (max_insn_length): New 'variable'.
7982 (displaced_step_copy, displaced_step_fixup)
7983 (displaced_step_free_closure, displaced_step_location): New
7984 functions.
7985 (struct displaced_step_closure): Add forward declaration.
7986 * gdbarch.c, gdbarch.h: Regenerated.
7987
7988 * arch-utils.c: #include "objfiles.h".
7989 (simple_displaced_step_copy_insn)
7990 (simple_displaced_step_free_closure)
7991 (displaced_step_at_entry_point): New functions.
7992 * arch-utils.h (simple_displaced_step_copy_insn)
7993 (simple_displaced_step_free_closure)
7994 (displaced_step_at_entry_point): New prototypes.
7995
7996 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
7997 (I386_MAX_MATCHED_INSN_LEN): ... this.
7998 (i386_absolute_jmp_p, i386_absolute_call_p)
7999 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
8000 (i386_displaced_step_fixup): New functions.
8001 (struct i386_insn, i386_match_insn): Update.
8002 (i386_gdbarch_init): Set gdbarch_max_insn_length.
8003 * i386-tdep.h (I386_MAX_INSN_LEN): New.
8004 (i386_displaced_step_fixup): New prototype.
8005 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
8006 Register gdbarch_displaced_step_copy,
8007 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
8008 and gdbarch_displaced_step_location functions.
8009
8010 * infrun.c (debug_displaced): New variable.
8011 (show_debug_displaced): New function.
8012 (struct displaced_step_request): New struct.
8013 (displaced_step_request_queue, displaced_step_ptid)
8014 (displaced_step_gdbarch, displaced_step_closure)
8015 (displaced_step_original, displaced_step_copy)
8016 (displaced_step_saved_copy, can_use_displaced_stepping): New
8017 variables.
8018 (show_can_use_displaced_stepping, use_displaced_stepping)
8019 (displaced_step_clear, cleanup_displaced_step_closure)
8020 (displaced_step_dump_bytes, displaced_step_prepare)
8021 (displaced_step_clear_cleanup, write_memory_ptid)
8022 (displaced_step_fixup): New functions.
8023 (resume): Call displaced_step_prepare.
8024 (proceed): Call read_pc once, and remember the value. If using
8025 displaced stepping, don't remove breakpoints.
8026 (handle_inferior_event): Call displaced_step_fixup. Add some
8027 debugging output. When we try to step over a breakpoint, but get
8028 a signal to deliver to the thread instead, ensure the step-resume
8029 breakpoint is actually inserted. If a thread hop is needed, and
8030 displaced stepping is enabled, don't remove breakpoints.
8031 (init_wait_for_inferior): Call displaced_step_clear.
8032 (_initialize_infrun): Add "set debug displaced" command. Add
8033 "maint set can-use-displaced-stepping" command. Clear
8034 displaced_step_ptid.
8035 * inferior.h (debug_displaced): Declare variable.
8036 (displaced_step_dump_bytes): Declare function.
8037
8038 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
8039 dependencies.
8040
0428b8f5
DJ
80412008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
8042
8043 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
8044 (arm_force_mode_string, arm_show_fallback_mode)
8045 (arm_show_force_mode): New.
8046 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
8047 arm_frame_is_thumb.
8048 (_initialize_arm_tdep): Add "set arm fallback-mode"
8049 and "set arm force-mode".
8050 * NEWS: Document new commands.
8051
d01a8610
AS
80522008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
8053
8054 * main.h (batch_silent): Declare.
8055 * event-top.c: Include main.h.
8056 (gdb_setup_readline): Remove extern batch_silent declaration.
8057 * infrun.c (normal_stop): Don't print source location when running in
8058 --batch-silent mode.
8059 * Makefile.in (event-top.o): Add main.h dependency.
8060
5009afc5
AS
80612008-05-02 Andreas Schwab <schwab@suse.de>
8062
8063 * target.h (struct target_ops): Add
8064 to_watchpoint_addr_within_range.
8065 (target_watchpoint_addr_within_range): New function.
8066 * target.c (update_current_target): Inherit
8067 to_watchpoint_addr_within_range, defaulting to
8068 default_watchpoint_addr_within_range.
8069 (default_watchpoint_addr_within_range): New function.
8070 (debug_to_watchpoint_addr_within_range): New function.
8071 (setup_target_debug): Set to_watchpoint_addr_within_range.
8072 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
8073 New function.
8074 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
8075 * breakpoint.c (watchpoints_triggered): Use
8076 target_watchpoint_addr_within_range.
8077
a15c5c83
PA
80782008-05-01 Pedro Alves <pedro@codesourcery.com>
8079
8080 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
8081 (i[34567]86-*-dicos*, x86_64-*-dicos*):
8082 Set gdb_osabi to GDB_OSABI_DICOS.
8083
8084 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
8085 * osabi.c (gdb_osabi_name): Add "DICOS".
8086
8087 * i386-dicos-tdep.c: New file.
8088
8089 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
8090 (ALLDEPFILES): Add i386-dicos-tdep.c.
8091 (i386-dicos-tdep.o): New rule.
8092
728c8f58
PA
80932008-05-01 Pedro Alves <pedro@codesourcery.com>
8094
8095 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
8096 and register the fork's PTID as a thread.
8097
604133b5
AR
80982008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
8099
8100 PR gdb/1665
8101 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
8102 assign its value to the breakpoint created.
8103 (create_breakpoints): Add breakpoint_ops argument and pass it
8104 to create_breakpoint call.
8105 (break_command_really): Add breakpoint_ops argument and pass/assign
8106 appropriately.
8107 (break_command_1): Pass NULL as ops argument.
8108 (set_breakpoint): Pass NULL as ops argument.
8109 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
8110 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
8111 catch and throw catchpoints.
5009afc5 8112
1f906a60 81132008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
8114
8115 PR gdb/2343
8116 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
8117 translate signal numeric value from the target to GDB's enum
8118 target_signal.
8119 * gdbarch.c, gdbarch.h: Regenerated.
8120 * gdbarch.sh: Added two new functions target_signal_from_host and
8121 target_signal_to_host.
680b56ce 8122 * target.h (default_target_signal_from_host,
1cded358
AR
8123 default_target_signal_to_host): New functions - declarations.
8124 * signals/signals.c (struct gdbarch): New declaration.
8125 (default_target_signal_to_host, default_target_signal_from_host): New
8126 functions.
8127
ed5e9466
DJ
81282008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8129 Pedro Alves <pedro@codesourcery.com>
8130
8131 Based on work by Jan Kratochvil <jan.kratochvil@redhat.com> and Jeff
8132 Johnston <jjohnstn@redhat.com>.
8133
8134 * NEWS: Mention attach to stopped process fix.
8135 * infcmd.c (detach_command, disconnect_command): Discard the thread
8136 list.
8137 * infrun.c (handle_inferior_event): Do not ignore non-SIGSTOP while
8138 attaching. Use signal_stop_state.
8139 (signal_stop_state): Check stop_soon.
8140 * linux-nat.c (kill_lwp): Declare earlier.
8141 (pid_is_stopped, linux_nat_post_attach_wait): New.
8142 (lin_lwp_attach_lwp): Use linux_nat_post_attach_wait. Update
8143 comments.
8144 (linux_nat_attach): Use linux_nat_post_attach_wait.
8145 (detach_callback, linux_nat_detach): Improve handling for signalled
8146 processes.
8147 (linux_nat_pid_to_str): Always print out the LWP ID if it differs
8148 from the process ID.
8149 * Makefile.in (infcmd.o): Update.
8150
b39cc962
DJ
81512008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
8152
8153 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
8154 * arm-tdep.c (arm_frame_is_thumb): New.
8155 (arm_pc_is_thumb): Clarify comment.
8156 (thumb_analyze_prologue): Remove PC special case.
8157 (thumb_scan_prologue): Take a block_addr argument. Use it for
8158 find_pc_partial_function. Remove unused variables.
8159 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
8160 for find_pc_partial_function. Remove PC special case.
8161 (arm_prologue_prev_register): Add special handling for PC and CPSR.
8162 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
8163 (arm_get_next_pc): Use arm_frame_is_thumb.
8164 (arm_write_pc): Use CPSR_T instead of 0x20.
8165 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
8166 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
8167 (CPSR_T): Define.
8168 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
8169 DWARF2_FRAME_REG_FN.
8170 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
8171 DWARF2_FRAME_REG_FN.
8172 (struct dwarf2_frame_state_reg): Add FN to loc union.
8173
944f08ab
JB
81742008-05-01 Nick Roberts <nickrob@snap.net.nz>
8175
8176 * exec.c (print_section_info): Add missing '\n'.
8177
cfc01461
VP
81782008-05-01 Vladimir Prus <vladimir@codesourcery.com>
8179
8180 * thread.c (add_thread): Move observer call to ...
680b56ce 8181 (add_thread_silent): ... here.
cfc01461 8182
1af5d7ce
UW
81832008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8184
8185 * rs6000-tdep.c: Update for unwinder changes.
8186 * ppcobsd-tdep.c: Likewise.
8187
f089c433
UW
81882008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8189
8190 * s390-tdep.c: Update for unwinder changes.
8191
8d998b8f
UW
81922008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
8193
8194 * spu-tdep.c: Update for unwinder changes.
8195
5366653e
DJ
81962008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8197
8198 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
8199 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
8200 sparc64-linux-tdep.c: Update for unwinder changes.
8201
b8a22b94
DJ
82022008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8203
8204 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
8205 for unwinder changes.
8206 * mips-tdep.c: Likewise.
8207 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
8208 raw one.
8209
a262aec2
DJ
82102008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8211
8212 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
8213 unwinder changes.
8214
10458914
DJ
82152008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8216
8217 Update i386 and amd64 ports for unwinder changes.
8218
8219 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
8220 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
8221 (amd64_frame_unwind): Use default_frame_sniffer.
8222 (amd64_frame_sniffer): Delete.
8223 (amd64_sigtramp_frame_cache): Expect this_frame.
8224 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
8225 (amd64_sigtramp_frame_sniffer): Update signature.
8226 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
8227 (amd64_frame_base_address): Expect this_frame.
8228 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
8229 this_frame.
8230 (amd64_init_abi): Use set_gdbarch_dummy_id and
8231 frame_unwind_append_unwinder.
8232 * i386-tdep.c (i386_frame_cache): Expect this_frame.
8233 (i386_frame_this_id, i386_frame_prev_register): Update signature.
8234 (i386_frame_unwind): Use default_frame_sniffer.
8235 (i386_frame_sniffer): Delete.
8236 (i386_sigtramp_frame_cache): Expect this_frame.
8237 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
8238 (i386_sigtramp_frame_sniffer): Update signature.
8239 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
8240 (i386_frame_base_address): Update signature.
8241 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
8242 (i386_push_dummy_call): Update comment.
8243 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
8244 Expect this_frame.
8245 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
8246 and frame_unwind_append_unwinder.
8247 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
8248 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
8249 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
8250 i386nbsd-tdep.c: Update for unwinder changes.
8251
25492ce3
DJ
82522008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8253
8254 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
8255 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
8256 this_frame.
8257 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
8258 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
8259 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
8260 signature.
8261 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
8262 this_frame.
8263 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
8264 Update signature.
8265 * tramp-frame.h (struct tramp_frame): Update signature of init.
8266 * Makefile.in (trad-frame.o): Update.
8267
4a4e5149
DJ
82682008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8269
8270 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
8271 (execute_stack_op): Put this_frame in the baton.
8272 (execute_cfa_program): Take this_frame.
8273 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
8274 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
8275 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
8276 (dwarf2_frame_this_id): Adjust to work on this_frame.
8277 (dwarf2_signal_frame_this_id): Delete.
8278 (dwarf2_frame_prev_register): Update signature. Use new frame
8279 unwind methods.
8280 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
8281 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
8282 dwarf2_frame_sniffer.
8283 (dwarf2_append_unwinders): New.
8284 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
8285 this_frame.
8286 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
8287 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
8288 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
8289 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
8290 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
8291 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
8292 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
8293 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
8294 (dwarf2_append_unwinders): Declare.
8295 (dwarf2_frame_base_sniffer): Update declaration.
8296 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
8297 this_frame.
8298
669fac23
DJ
82992008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8300
8301 Convert frame unwinders to use the current frame and
8302 "struct value".
8303
8304 * frame.c (frame_debug): Make global.
8305 (get_frame_id): Pass this frame to unwinder routines.
8306 (frame_pc_unwind): Remove unused unwind->prev_pc support.
8307 (do_frame_register_read): Do not discard the return value of
8308 frame_register_read.
8309 (frame_register_unwind): Remove debug messages. Use
8310 frame_unwind_register_value.
8311 (frame_unwind_register_value, get_frame_register_value): New
8312 functions.
8313 (create_new_frame, get_frame_base_address, get_frame_locals_address)
8314 (get_frame_args_address, get_frame_type): Pass this frame to
8315 unwinder routines.
8316 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
8317 functions.
8318 * frame.h: Update comments.
8319 (frame_debug, frame_unwind_register_value, get_frame_register_value)
8320 (frame_prepare_for_sniffer): Declare.
8321 * frame-unwind.h: Update comments and parameter names.
8322 (default_frame_sniffer): Declare.
8323 (frame_prev_register_ftype): Return a struct value *.
8324 (struct frame_unwind): Remove prev_pc member.
8325 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
8326 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
8327 (frame_unwind_got_register, frame_unwind_got_memory)
8328 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
8329 * frame-base.h: Update comments and parameter names.
8330 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
8331 if necessary. Add debugging output.
8332 * sentinel-frame.c (sentinel_frame_prev_register)
8333 (sentinel_frame_this_id): Update for new signature.
8334 (sentinel_frame_prev_pc): Delete.
8335 (sentinel_frame_unwinder): Remove prev_pc.
8336 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
8337 prev_pc.
8338 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
8339 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
8340 (frame_unwind_append_sniffer): Delete.
8341 (frame_unwind_append_unwinder): New function.
8342 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
8343 from unwinders. Use frame_prepare_for_sniffer.
8344 (default_frame_sniffer, frame_unwind_got_optimized)
8345 (frame_unwind_got_register, frame_unwind_got_memory)
8346 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
8347 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
8348 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
8349 signature.
8350 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
8351 * gdbarch.c, gdbarch.c: Regenerated.
8352 * frame-base.c (default_frame_base_address)
8353 (default_frame_locals_address, default_frame_args_address): Update
8354 for new signature.
8355 (frame_base_find_by_frame): Pass this frame to unwinder routines.
8356 * infcall.c (call_function_by_hand): Update comments.
8357 * Makefile.in (frame-unwind.o): Update dependencies.
8358
9214ee5f
DJ
83592008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8360
8361 * ada-lang.c (ada_value_primitive_packed_val): Only check
8362 value_lazy for memory lvals.
8363 * findvar.c (value_of_register_lazy): New function.
8364 (locate_var_value): Only check value_lazy for memory lvals.
8365 * valarith.c (value_subscripted_rvalue): Likewise.
8366 * valops.c (value_fetch_lazy): Handle both memory and register
8367 lvals.
8368 (search_struct_field, value_slice): Only check value_lazy for memory
8369 lvals.
8370 * value.c (struct value): Update comment for lazy.
8371 (value_primitive_field): Only check value_lazy for memory lvals.
8372 * value.h (value_lazy): Update comment.
8373 (value_of_register_lazy): Declare.
8374
939643d7
DJ
83752008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
8376
8377 * corefile.c (reopen_exec_file): Close any open files.
8378
1de34ab7
JB
83792008-04-29 Joel Brobecker <brobecker@adacore.com>
8380
8381 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
8382 show_memory_breakpoints to 1 while reading the instruction bundle.
8383
ea42b34a
JB
83842008-04-29 Joel Brobecker <brobecker@adacore.com>
8385
8386 * gdbarch.sh: Document the return_value method. Explain that
8387 the FUNCTYPE parameter might be NULL.
8388 * gdbarch.h: Regenerated.
8389 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
8390 type when calling using_struct_return, as this is unnecessary
8391 on this target.
8392
a0fe373c
JB
83932008-04-28 Joel Brobecker <brobecker@adacore.com>
8394
8395 * terminal.h (create_tty_session): Fix return type.
8396
c6446539
VP
83972008-04-26 Vladimir Prus <vladimir@codesourcery.com>
8398
8399 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
8400
2f069f6f
JB
84012008-04-26 Joel Brobecker <brobecker@adacore.com>
8402
8403 * breakpoint.c (condition_command, commands_from_control_command)
8404 (break_command_really): Minor reformatting.
8405
93b5768b
PA
84062008-04-25 Pedro Alves <pedro@codesourcery.com>
8407
8408 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
8409
436675d3
PA
84102008-04-25 Pedro Alves <pedro@codesourcery.com>
8411
8412 * amd64-tdep.c (amd64_get_longjmp_target): New.
8413 (amd64_init_abi): Register amd64_get_longjmp_target as
8414 gdbarch_get_longjmp_target callback.
8415 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
8416
78b6a731
PA
84172008-04-25 Pedro Alves <pedro@codesourcery.com>
8418
8419 * breakpoint.h (enum bpstat_what_main_action): Delete
8420 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
8421
8422 * breakpoint.c (clrs): Delete.
8423 (bpstat_what): Update table.
8424
8425 * infrun.c (handle_inferior_event): Remove
8426 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
8427
9e22b03a
VP
84282008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8429
8430 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
8431 Adjust all prototypes using mi_cmd_args_ftype to use
8432 mi_cmd_argv_ftype.
8433 (struct mi_cmd): Remove the args_func field.
8434 * mi/mi-cmds.c: Don't provide value for the args_func field.
8435 * mi/mi-main.c (mi_execute_async_cli_command)
8436 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
8437 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
8438 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
8439 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
8440 (mi_cmd_target_download): Adjust.
8441 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
8442 (mi_cmd_execute): Do not check for args_func.
8443 (mi_execute_async_cli_command): Adjust.
8444 * mi/mi-parse.c: Don't check for args_func.
8445
721c02de 84462008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393 8447
680b56ce
AS
8448 * breakpoint.c (bpstat_check_location)
8449 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
8450 New, extracted from bpstat_stop_status.
8451 (bpstat_stop_status): Use the above.
18a18393
VP
8452
84532008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8454
680b56ce
AS
8455 * mi/mi-main.c (last_async_command): Rename to current_token.
8456 (previous_async_command): Remove.
8457 (mi_cmd_gdb_exit): Adjust.
8458 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
8459 (mi_cmd_target_select): Adjust.
8460 (mi_cmd_execute): Don't set previous_async_command. Free token
8461 here even in async mode.
8462 (mi_execute_async_cli_command): Adjust.
8463 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
8464 token.
8465 (mi_load_progress): Adjust.
721c02de 8466
f13468d9
VP
84672008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8468
680b56ce
AS
8469 * infcmd.c (step_1_continuation): Always disable longjmp
8470 breakpoint if we're not going to do another step.
f13468d9 8471
f107f563
VP
84722008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8473
8474 exec_cleanup murder.
8475 * breakpoint.c (until_break_command_continuation): Add
8476 the 'error' parameter. Directly delete the breakoint as
8477 opposed to running cleanups.
8478 (until_break_command): Install continuation only
8479 after starting the target. Don't use exec cleanups,
8480 use ordinary cleanups. Discard cleanups is successfully
8481 started the target in async mode.
8482 (make_cleanup_delete_breakpoint): Remove.
8483 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
8484 declaration.
8485 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
8486 declarations.
8487 (struct continations): Add the 'error' parameter to the
8488 continuation_hook field.
8489 (add_continuation, do_all_continuations)
8490 (add_intermediate_continuation)
8491 (do_all_intermediate_continuations): Add the 'error' parameter.
8492 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
8493 * inf-loop.c (inferior_event_handler): Instead of calling
8494 discard_all_continuations, use do_all_continuations with 1 as
8495 'error' parameter. Pass 0 as 'error' parameter in existing uses
8496 of discard_all_continuations.
8497 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
8498 cleanups.
8499 (step_once): Install continuation only after resuming the target.
8500 (step_1_continuation): Disable longjmp breakpoint on error.
8501 (finish_command_continuation): Add the error parameter. Delete
8502 the finish breakpoint directly, do not use cleanups.
8503 (finish_command): Do not use exec_cleanups. Always setup
8504 continuation. For sync case, immediately run them.
8505 (attach_command_continuation): Add the error parameter.
8506 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
8507 remove step_resume_breakpoint -- adjust delete it directly.
8508 * interps.c (interp_set): Adjust call to do_all_continations.
8509 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
8510 do exec cleanups.
8511 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
8512 cleanups.
8513 (mi_cmd_execute): Do not use exec_cleanup.
8514 (mi_execute_async_cli_command): Simplify the string concatenation
8515 logic. Do no use exec cleanup.
8516 (mi_exec_async_cli_cmd_continuation): New parameter error.
8517 Free last_async_command.
8518 * top.c (command_line_handler_continuation): New parameter error.
8519 * utils.c (exec_cleanup_chain, make_exec_cleanup)
8520 (do_exec_cleanups): Remove.
8521 (add_continuation, do_all_continations)
8522 (add_intermediate_continuation)
8523 (do_all_intermediate_continuations): New parameter error.
8524
74960c60
VP
85252008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8526
8527 * breakpoint.h (bp_location_p): New typedef.
8528 Register a vector of bp_location_p.
8529 * breakpoint.c (always_inserted_mode)
8530 (show_always_inserted_mode): New.
8531 (unlink_locations_from_global_list): Remove.
8532 (update_global_location_list)
8533 (update_global_location_list_nothrow): New.
8534 (update_watchpoint): Don't free locations.
8535 (should_insert_location): New.
8536 (insert_bp_location): Use should_insert_location.
8537 (insert_breakpoint_locations): Copied from
8538 insert_breakpoints.
8539 (insert_breakpoint): Use insert_breakpoint_locations.
8540 (bpstat_stop_status): Call update_global_location_list
8541 when disabling breakpoint.
8542 (allocate_bp_location): Don't add to bp_location_chain.
8543 (set_raw_breakpoint)
8544 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
8545 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
8546 (enable_overlay_breakpoints, disable_overlay_breakpoints)
8547 (set_longjmp_resume_breakpoint)
8548 (enable_watchpoints_after_interactive_call_stop)
8549 (disable_watchpoints_before_interactive_call_start)
8550 (create_internal_breakpoint)
8551 (create_fork_vfork_event_catchpoint)
8552 (create_exec_event_catchpoint, set_momentary_breakpoint)
8553 (create_breakpoints, break_command_1, watch_command_1)
8554 (create_exception_catchpoint)
8555 (handle_gnu_v3_exceptions)
8556 (disable_breakpoint, breakpoint_re_set_one)
8557 (create_thread_event_breakpoint, create_solib_event_breakpoint)
8558 (create_ada_exception_breakpoint): : Don't call check_duplicates.
8559 Call update_global_location_list.
8560 (delete_breakpoint): Don't remove locations and don't
8561 try to reinsert them. Call update_global_location_list.
8562 (update_breakpoint_locations): Likewise.
8563 (restore_always_inserted_mode): New.
8564 (update_breakpoints_after_exec): Temporary disable
8565 always inserted mode.
8566 * Makefile.in: Update dependencies.
8567
8568 * infrun.c (proceed): Remove breakpoints while stepping
8569 over breakpoint.
8570 (handle_inferior_event): Don't remove or insert
8571 breakpoints.
8572 * linux-fork.c (checkpoint_command): Remove breakpoints
8573 before fork and insert after.
8574 (linux_fork_context): Remove breakpoints before switch
8575 and insert after.
8576 * target.c (target_disconnect, target_detach): Remove
8577 breakpoints from target.
8578
680b56ce 8579
d24317b4
VP
85802008-04-24 Vladimir Prus <vladimir@codesourcery.com>
8581
8582 * breakpoint.c (print_one_breakpoint_location): In MI
8583 mode, report the location string the breakpoint was
8584 originally created with.
8585
ee967b5f
MG
85862008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
8587
8588 * Makefile.in (xtensa-tdep.o): Update dependencies.
8589 * configure.tgt (xtensa*): Update dependencies.
8590 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
8591 Local variable areg renamed to arreg.
8592 (areg_number): New function.
8593 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
8594 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
8595 replaced by arreg_number.
8596 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
8597 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
8598 (xtensa_scan_prologue): New function.
8599 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
8600 when ENTRY instraction hasn't been executed yet. Get the frame pointer
8601 value based on prologue analysis. Fix the bugs preventing WS and
8602 AR4-AR7/A11 registers from getting right values for intermediate frames,
8603 whose registers have been already spilled.
8604 (xtensa_frame_prev_register): Fix WS register value. Use are_number
8605 and arreg_number appropriately.
8606 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
8607 svr4_ilp32_fetch_link_map_offsets.
8608
09d71d23
AS
86092008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
8610
8611 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
8612 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
8613
fdc59709
PB
86142008-04-23 Paolo Bonzini <bonzini@gnu.org>
8615
680b56ce
AS
8616 * acinclude.m4: Add override.m4.
8617 * configure: Regenerate.
fdc59709 8618
0bcd0149
JK
86192008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8620
8621 * ada-lang.c (get_selections): Variable PROMPT made non-const and
8622 initialized with a trailing space now. Use PROMPT_ARG of
8623 COMMAND_LINE_INPUT instead of printing it ourselves.
8624
88d8a8e0
JB
86252008-04-22 Joel Brobecker <brobecker@adacore.com>
8626
8627 * NEWS: Document support for 64-bit core file.
8628
c055b101
CV
86292008-04-22 Corinna Vinschen <vinschen@redhat.com>
8630
8631 * NEWS: Add information on calling convention and new SH CLI options.
8632
8633 * sh-tdep.c (sh_cc_gcc): New static string.
8634 (sh_cc_renesas): Ditto.
8635 (sh_cc_enum): New static string array.
8636 (sh_active_calling_convention): New static string pointer denoting
8637 active user chosen ABI.
8638 (sh_is_renesas_calling_convention): New function to return function
8639 specific ABI, or user choice if necessary.
8640 (sh_use_struct_convention): Rename first argument and turn around its
8641 meaning. Check for renesas ABI and return accordingly.
8642 (sh_use_struct_convention_nofpu): New function.
8643 (sh_next_flt_argreg): Get function type as third parameter. Check
8644 for renesas ABI and choose floating registers accordingly.
8645 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
8646 struct return slot accordingly.
8647 (sh_push_dummy_call_nofpu): Ditto.
8648 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
8649 Evaluate ABI and give to sh_use_struct_convention_nofpu.
8650 (sh_return_value_fpu): Evaluate ABI and give to
8651 sh_use_struct_convention.
8652 (show_sh_command): New function.
8653 (set_sh_command): Ditto.
8654 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
8655 CLI command.
8656
8657 * gdbarch.sh (return_value): Add func_type argument.
8658 * gdbarch.c: Regenerate.
8659 * gdbarch.h: Ditto.
8660 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
8661 val_type so as not to collide with value_type function. Call
8662 using_struct_return with additional function type argument.
8663 * infcall.c (call_function_by_hand): Call using_struct_return and
8664 gdbarch_return_value with additional function type argument.
8665 * infcmd.c (print_return_value): Take addition func_type argument.
8666 Call gdbarch_return_value with additional function type argument.
8667 (finish_command_continuation): Call print_return_value with additional
8668 function type argument.
8669 (finish_command): Ditto.
8670 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
8671 additional function type argument.
8672 * stack.c (return_command): Call using_struct_return and
8673 gdbarch_return_value with additional function type argument.
8674 * value.c (using_struct_return): Take additional function type argument.
8675 * value.h (using_struct_return): Accommodate declaration.
8676 * alpha-tdep.c (alpha_return_value): Add func_type argument.
8677 * amd64-tdep.c (amd64_return_value): Ditto.
8678 * arm-tdep.c (arm_return_value): Ditto.
8679 * avr-tdep.c (avr_return_value): Ditto.
8680 * cris-tdep.c (cris_return_value): Ditto.
8681 * frv-tdep.c (frv_return_value): Ditto.
8682 * h8300-tdep.c (h8300_return_value): Ditto.
8683 (h8300h_return_value): Ditto.
8684 * hppa-tdep.c (hppa32_return_value): Ditto.
8685 (hppa64_return_value): Ditto.
8686 * i386-tdep.c (i386_return_value): Ditto.
8687 * ia64-tdep.c (ia64_return_value): Ditto.
8688 * iq2000-tdep.c (iq2000_return_value): Ditto.
8689 * m32c-tdep.c (m32c_return_value): Ditto.
8690 * m32r-tdep.c (m32r_return_value): Ditto.
8691 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
8692 * m68k-tdep.c (m68k_return_value): Ditto.
8693 (m68k_svr4_return_value): Ditto.
8694 * m88k-tdep.c (m88k_return_value): Ditto.
8695 * mep-tdep.c (mep_return_value): Ditto.
8696 * mips-tdep.c (mips_eabi_return_value): Ditto.
8697 (mips_n32n64_return_value): Ditto.
8698 (mips_o32_return_value): Ditto.
8699 (mips_o64_return_value): Ditto.
8700 * mn10300-tdep.c (mn10300_return_value): Ditto.
8701 * mt-tdep.c (mt_return_value): Ditto.
8702 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
8703 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
8704 (ppc_sysv_abi_broken_return_value): Ditto.
8705 (ppc64_sysv_abi_return_value): Ditto.
8706 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
8707 (ppc_sysv_abi_broken_return_value): Ditto.
8708 (ppc64_sysv_abi_return_value): Ditto.
8709 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
8710 * rs6000-tdep.c (rs6000_return_value): Ditto.
8711 * s390-tdep.c (s390_return_value): Ditto.
8712 * score-tdep.c (score_return_value): Ditto.
8713 * sh-tdep.c (sh_return_value_nofpu): Ditto.
8714 (sh_return_value_fpu): Ditto.
8715 * sh64-tdep.c (sh64_return_value): Ditto.
8716 * sparc-tdep.c (sparc32_return_value): Ditto.
8717 * sparc64-tdep.c (sparc64_return_value): Ditto.
8718 * spu-tdep.c (spu_return_value): Ditto.
8719 * v850-tdep.c (v850_return_value): Ditto.
8720 * vax-tdep.c (vax_return_value): Ditto.
8721 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
8722 * xtensa-tdep.c (xtensa_return_value): Ditto.
8723
8724 * gdbtypes.h (struct type): Add calling_convention member.
8725 * dwarf2read.c (read_subroutine_type): Add calling convention read
8726 from DW_AT_calling_convention attribute to function type.
8727
9eec4d1e
MD
87282008-04-22 Markus Deuling <deuling@de.ibm.com>
8729
8730 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
8731 multi_f77_subscript to support values from registers.
8732 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
8733 * value.h (value_subscripted_rvalue): Add prototype.
8734
8735 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
8736 Fix output.
8737 * f-valprint.c (f_val_print): Likewise.
8738
ef72380d
CS
87392008-04-21 Craig Silverstein <csilvers@google.com>
8740
8741 * dwarf2read.c (zlib_decompress_section): Define abfd in the
8742 !HAVE_ZLIB_H case.
8743
ff8e85c3
PA
87442008-04-21 Pedro Alves <pedro@codesourcery.com>
8745
8746 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
8747 section is not a code section.
8748
31fffb02
CS
87492008-04-19 Craig Silverstein <csilvers@google.com>
8750
8751 * NEWS: Add information on compressed debug sections.
8752
8e91f023
VP
87532008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8754
8755 * mi/mi-cmd-var.c (varobj_update_one): Print new
8756 value for variable objects that changed type.
8757
603ba1de
VP
87582008-04-19 Vladimir Prus <vladimir@codesourcery.com>
8759
8760 * varobj.c (varobj_invalidate): Don't touch floating
8761 varobjs.
8762
7fc830e2
MK
87632008-04-19 Mark Kettenis <kettenis@gnu.org>
8764
8765 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
8766 (multiple_symbols_cancel): Remove extra const.
8767 * symtab.h: Likewise.
8768
bcbf8b68
NR
87692008-04-19 Nick Roberts <nickrob@snap.net.nz>
8770
8771 * interps.c (top_level_interpreter): Rename static variable...
8772 (top_level_interpreter_ptr): ...to this.
8773 (top_level_interpreter): New function.
8774
8775 * interps.h: New extern for top_level_interpreter.
8776
8777 * linespec.c: Include interps.h and mi/mi-cmds.h.
8778 (decode_line_2): When using MI, always set all breakpoints in menu.
8779
8780 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
8781
31fffb02 87822008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
8783
8784 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
8785 * config.in, configure: Regenerate.
8786 * dwarf2read.c: Include zlib.h if present.
8787 Modified *_SECTION macros.
8788 (section_is_p): New.
8789 (dwarf2_locate_sections): Use section_is_p instead of strcmp
8790 (dwarf2_resize_section): New.
8791 to determine whether a given section has a given name.
8792 (zlib_decompress_section): New.
8793 (dwarf2_read_section): Read the compressed section if present
8794 in the binary.
8795 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 8796
a03b3a97
TJB
87972008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
8798
8799 * defs.h (exec_set_section_offsets): Remove prototype.
8800 * exec.c (exec_set_section_offsets): Remove function.
8801
9e386756
JB
88022008-04-18 Joel Brobecker <brobecker@adacore.com>
8803
8804 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
8805 in the search for the matching symbol.
8806
2ec93238
MK
88072008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
8808
8809 * breakpoint.c (update_watchpoint): Always reparse
8810 condition.
8811
e9bbd7c5
JB
88122008-04-17 Joel Brobecker <brobecker@adacore.com>
8813
8814 * breakpoint.c (print_one_breakpoint_location): Make sure to print
8815 the breakpoint address only once.
8816
475bbd17
JB
88172008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
8818
8819 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
8820 rather than a hard-coded architecture, for xcoff executables.
8821
86991504
DE
88222008-04-17 Doug Evans <dje@google.com>
8823
4584e32e
DE
8824 * buildsym.c (watch_main_source_file_lossage): New fn.
8825 (end_symtab): Call it.
8826
86991504
DE
8827 * source.c (find_and_open_source): Add some comments clarifying
8828 handling of FULLNAME argument. Make static. Remove pointless
8829 xstrdup/xfree.
8830
0a320680
PA
88312008-04-17 Pedro Alves <pedro@codesourcery.com>
8832
8833 * inf-loop.c (inferior_event_handler): Also run the intermediate
8834 continuations in the INF_EXEC_COMPLETE case.
8835
700b53b1
TT
88362008-04-16 Tom Tromey <tromey@redhat.com>
8837
8838 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
8839 (set_cmd_async_ok, get_cmd_async_ok): Declare.
8840 * cli/cli-decode.c (set_cmd_async_ok): New function.
8841 (get_cmd_async_ok): New function.
8842 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
8843 "show" as async-ok.
8844 * top.c (execute_command): Use get_cmd_async_ok.
8845 * infcmd.c: Include cli/cli-decode.h.
8846 (_initialize_infcmd): Mark "interrupt" as async-ok.
8847 * Makefile.in (infcmd.o): Depend on cli_decode_h.
8848
dacec2a8
DJ
88492008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
8850
8851 PR gdb/2445
8852 * exec.c: Correct "arch-utils.h" include.
8853
1f906a60 88542008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
8855
8856 PR gdb/2424
8857 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
8858 to allow printing to 'see' real reason of stop. This fixes PR 2424.
8859 * breakpoint.c (bpdisp_texst): New function. The function takes over
8860 the role of bpstats static array in print_one_breakpoint_location.
8861 (print_it_typical): Print "Temporary breakpoint" instead
8862 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
8863 protocols, print disp field.
8864 (print_one_breakpoint_location): Removed bpdisps static definition.
8865 Call new bpstat_text function to get value for 'disp' field.
8866 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
8867
4d7b71aa
DJ
88682008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
8869
8870 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
8871 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
8872 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
8873 * gnulib/Makefile.in: Regenerate.
8874
aa11fd3f
DJ
88752008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8876
8877 * Makefile.in (GNULIB_H): New. Trigger all-lib.
8878 (defs_h): Use $(GNULIB_H).
8879 (all-lib): Depend on gnulib/Makefile.
8880 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
8881 * config.in, gnulib/Makefile.in: Regenerated.
8882
e28b3332
DJ
88832008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8884
8885 * Makefile.in (LIBGNU, INCGNU): Define.
8886 (INTERNAL_CFLAGS_BASE): Add INCGNU.
8887 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
8888 (CLEANDIRS): New.
8889 ($(LIBGNU), all-lib): New rules.
8890 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
8891 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
8892 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
8893 * gnulib: New directory, from gnulib-tool.
8894 * configure, aclocal.m4: Regenerated.
8895
e3bc4218
DJ
88962008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
8897
8898 * linux-thread-db.c (have_threads_callback): Check thread->private.
8899
fcacd99f
VP
89002008-04-13 Nick Roberts <nickrob@snap.net.nz>
8901 Vladimir Prus <vladimir@codesourcery.com>
8902
8903 Fix @-varobjs.
680b56ce
AS
8904 * varobj.c (value_of_root): Update the expression for
8905 floating varobjs.
8906 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
8907 report that.
fcacd99f 8908
de051565
MK
89092008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
8910
8911 * mi/mi-cmd-var.c: Include "mi-getopt.h".
8912 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
8913 (mi_cmd_var_set_format): Use new mi_parse_format.
8914 (mi_cmd_var_evaluate_expression): Support for -f option to specify
8915 format.
8916 * Makefile.in (mi-cmd-var.o): Update dependencies.
8917
8918 * varobj.h (varobj_get_formatted_value): Declare.
8919 * varobj.c (my_value_of_variable): Added format parameter.
8920 (cplus_value_of_variable): Likewise.
8921 (java_value_of_variable): Likewise.
8922 (c_value_of_variable): Likewise. Evaluate expression based
8923 on format parameter.
8924 (struct language_specific): Add format parameter to function member
8925 *value_of_variable.
8926 (varobj_get_formatted_value): New.
8927 (varobj_get_value): Added format parameter to method call.
680b56ce 8928
56953f80
JB
89292008-04-08 Joel Brobecker <brobecker@adacore.com>
8930
8931 * stabsread.c (cleanup_undefined_types_noname): Manually set the
8932 instance flags of the undefined type before calling replace_type.
8933
e4e33b9e
VP
89342008-04-08 Vladimir Prus <vladimir@codesourcery.com>
8935
8936 * target.h (enum strata): Remove the download_stratum.
680b56ce 8937
92b5c263
DE
89382008-04-07 Doug Evans <dje@google.com>
8939
8940 * buildsym.h (last_source_file): Add dwarf info to comment.
8941 (last_source_start_addr): Ditto.
8942
effa26a9
PA
89432008-04-07 Pedro Alves <pedro@codesourcery.com>
8944
8945 * alphanbsd-tdep.c: Include "target.h".
8946 * mn10300-tdep.c: Include "target.h".
8947 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
8948
2b2d9e11
VP
89492008-04-06 Vladimir Prus <vladimir@codesourcery.com>
8950
8951 Fix breakpoint condition that use member variables.
680b56ce
AS
8952 * valops.c (check_field): Remove.
8953 (check_field_in): Rename to check_field.
8954 (value_of_this): Use la_name_of_this.
8955 * value.h (check_field): Adjust prototype.
8956
8957 * language.h (la_value_of_this): Rename to la_name_of_this.
8958 * language.c (unknown_language_defn): Specify "this" for
8959 name_of_this.
8960 (auto_language_defn): Likewise.
8961 (local_language_defn): Likewise.
8962 * ada-lang.c (ada_language_defn): Adjust comment.
8963 * c-lang.c (c_language_defn): Adjust comment.
8964 (cplus_language_defn): Specify "this" for name_of_this.
8965 (asm_language_defn): Adjust comment.
8966 (minimal_language_defn): Adjust comment.
8967 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
8968 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
8969 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
8970 * objc-lang.c (objc_language_defn): Specify "self" for
8971 name_of_this.
8972 * p-lang.c (pascal_language_defn): Specify "this" for
8973 name_of_this.
8974 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
8975
8976 * symtab.c (lookup_symbol_aux): Lookup "this" in the
8977 proper scope, and check for field in type of "this", without
8978 trying to create a value.
2b2d9e11 8979
a13e061a
PA
89802008-04-04 Pedro Alves <pedro@codesourcery.com>
8981
8982 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
8983 (mi_error_message): Delete declaration.
8984 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
8985 returning MI_CMD_ERROR.
8986 * mi/mi-main.c (mi_error_message): Delete.
8987 (mi_cmd_exec_interrupt):
8988 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
8989 (mi_cmd_thread_info): Call error instead of returning
8990 MI_CMD_ERROR.
8991 (mi_cmd_data_list_register_values): Call error instead of
8992 returning MI_CMD_ERROR. Adapt to new get_register interface.
8993 (get_register): Change return typo to void. Call error instead of
8994 returning MI_CMD_ERROR.
8995 (mi_cmd_data_write_register_values): Call error instead of
8996 returning MI_CMD_ERROR.
8997 (mi_cmd_list_features): Return MI_CMD_DONE.
8998 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
8999 (mi_execute_command): Always print exceptions with -error.
9000
aad4b048
JB
90012008-04-04 Joel Brobecker <brobecker@adacore.com>
9002
9003 * NEWS: Mention new commands set/show multiple-symbols.
9004
717d2f5a
JB
90052008-04-03 Joel Brobecker <brobecker@adacore.com>
9006
9007 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
9008 (multiple_symbols_cancel): New constants.
9009 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
9010 (multiple_symbols_select_mode): New function.
9011 (_initialize_symtab): Add new set/show multiple-symbols commands.
9012 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
9013 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
9014 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
9015 setting.
9016 * linespec.c (decode_line_2): Likewise.
9017
f73634e5
DE
90182008-04-03 Doug Evans <dje@sebabeach.org>
9019
9020 * symtab.h (enum free_code): Delete free_contents, unused.
9021 * symmisc.c (free_symtab_block): Delete.
9022 (free_symtab, case free_code): Delete.
9023
1f906a60 90242008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
9025
9026 * valops.c (value_cast_structs): New function. Cast related
680b56ce 9027 STRUCT types up/down and return cast value. The body of this
6af87b03
AR
9028 function comes mostly from value_cast_pointers.
9029 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
9030 to value_cast_structs. Now value_cast_pointers needs only create
9031 appropriate reference after using value_cast_structs for actual
9032 casting.
9033 (value_cast): Handle references.
9034
61ad90e1
MK
90352008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
9036
9037 * MAINTAINERS: Added myself to section Write After Approval.
9038
b7d038ae
DJ
90392008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
9040
9041 * ia64-tdep.c (examine_prologue): Correct array access.
9042
1f906a60 90432008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
9044
9045 * cp-support.c (first_component_command): Return if no arguments.
9046
df3ac606
CD
90472008-03-28 Carlos O'Donell <carlos@codesourcery.com>
9048
9049 * ser-mingw.c (ser_windows_open): Open requested name.
9050
ca933485
AR
90512008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
9052
9053 * MAINTAINERS: Added myself.
9054
5f667f2d
PA
90552008-03-28 Pedro Alves <pedro@codesourcery.com>
9056
9057 * target.c (find_default_run_target): Allow a NULL `do_mesg'
9058 parameter. If it is NULL, don't call error.
9059 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
9060 `do_mesg' parameter to find_default_run_target. If no target was
9061 found, return 0.
9062
e741f4d4
DJ
90632008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
9064
9065 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
9066 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
9067 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
9068 Delete.
9069 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
9070
f66d8205 90712008-03-27 Joel Brobecker <brobecker@adacore.com>
9072
9073 GDB 6.8 released.
9074
221c031f
UW
90752008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
9076
9077 * features/Makefile (%.dat): Set xmltarget to the base filename
9078 of the XML source, without subdirectory.
9079 * regformats/rs6000/powerpc-32.dat: Regenerate.
9080 * regformats/rs6000/powerpc-64.dat: Regenerate.
9081 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9082
40c58d95
MD
90832008-03-27 Markus Deuling <deuling@de.ibm.com>
9084
9085 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
9086 objfile arch.
9087
bb1ec7d2
NR
90882008-03-27 Nick Roberts <nickrob@snap.net.nz>
9089
9090 * mi/mi-main.c (enum captured_mi_execute_command_actions):
9091 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
9092
5e2b427d
UW
90932008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
9094
9095 * objfiles.h (struct objfile): New GDBARCH member.
9096 (get_objfile_arch): Add prototype.
9097 * objfiles.c: Include "arch-utils.h".
9098 (allocate_objfile): Look up gdbarch associated with bfd.
9099 (get_objfile_arch): New function.
9100 * Makefile (objfiles.o): Update dependencies.
9101
9102 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
9103 by objfile arch.
9104 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
9105 by frame arch.
9106 (locexpr_describe_location): Replace current_gdbarch by
9107 objfile arch.
9108 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
9109 (dwarf2_add_field): Likewise.
9110 (read_tag_pointer_type): Likewise.
9111 (read_base_type): Likewise.
9112 (new_symbol): Likewise.
9113
9114 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
9115 (decode_base_type, decode_function_type): Likewise.
9116 (coff_read_struct_type, coff_read_enum_type): Likewise.
9117 (coff_symtab_read): Replace current_gdbarch by objfile arch.
9118 (decode_base_type): Likewise.
9119 (coff_read_enum_type): Likewise.
9120 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
9121 (coff_read_enum_type): Likewise.
9122
9123 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
9124 (end_psymtab): Likewise.
9125 (process_one_symbol): Likewise.
9126
9127 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
9128 (parse_procedure): Likewise.
9129 (parse_partial_symbols): Likewise.
9130
9131 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
9132
9133 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
9134 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
9135 built-in types.
9136 (read_range_type): Replace current_gdbarch by objfile arch. Replace
9137 static range_index_type by built-in type.
9138 (read_one_struct_field): Replace current_gdbarch by objfile arch.
9139 (read_enum_type): Likewise.
9140
9141 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
9142 objfile arch.
9143
5a413362
VP
91442008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9145
9146 * varobj.h (varobj_floating_p): Declare.
9147 * varobj.c (varobj_floating_p): New.
9148 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
9149 '@' as the name, update all floating varobjs.
9150
a5defcdc
VP
91512008-03-26 Vladimir Prus <vladimir@codesourcery.com>
9152
9153 * varobj.c (struct varobj_root): Rename use_selected_frame to
9154 floating, and clarify the meaning.
9155 (varobj_create, varobj_update, new_root_variable): Adjust.
9156 (value_of_root): Don't use type_changed as in variable,
9157 adjust comment.
9158 (c_value_of_root): Adjust.
5a413362 9159
403fe197
PA
91602008-03-25 Pedro Alves <pedro@codesourcery.com>
9161
9162 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
9163 gdb's thread list.
9164 (linux_nat_wait): Add main lwp to gdb's thread list.
9165 * linux-thread-db.c (find_new_threads_callback): Also attach to
9166 already listed threads which thread_db didn't know about yet.
9167
710151dd
PA
91682008-03-25 Pedro Alves <pedro@codesourcery.com>
9169
9170 * linux-nat.c (drain_queued_events): Fix comment typo.
9171 (linux_nat_attach): In async mode, don't rely on storing a pending
9172 status. Instead place the wait status on the pipe.
9173 (linux_nat_resume): Remove unreacheable shortcut code in async
9174 mode.
9175 (stop_wait_callback): In async mode, don't store pending status.
9176 Instead, cancel breakpoints or resend the signal appropriatelly.
9177 (cancel_breakpoint): New, refactored from
9178 cancel_breakpoints_callback.
9179 (cancel_breakpoints_callback): Call cancel_breakpoint.
9180 (pipe_to_local_event_queue): Remove special token processing.
9181 (linux_nat_wait): Issue an internal error if a pending status is
9182 found in async mode.
9183
807bddf3
DJ
91842008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
9185
9186 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
9187
c5b48eac
VP
91882008-03-24 Nick Roberts <nickrob@snap.net.nz>
9189 Vladimir Prus <vladimir@codesourcery.com>
9190
680b56ce
AS
9191 * varobj.c (struct varobj_root): New component thread_id.
9192 (varobj_get_thread_id, check_scope): New functions.
9193 (c_value_of_root): Use check_scope. Switch to the
c5b48eac
VP
9194 proper thread if necessary.
9195
680b56ce 9196 * varobj.h (varobj_get_thread_id): New extern.
c5b48eac 9197
680b56ce 9198 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
c5b48eac 9199
12f4afab
DJ
92002008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
9201
9202 PR gdb/544
9203 * top.c: Revert 2008-03-21 changes.
9204
6208b47d
VP
92052008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9206
9207 * thread.c (make_cleanup_restore_current_thread): Make it
9208 globally visible.
9209 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
9210 * varobj.c (varobj_update): Don't save/restore frame.
9211 (c_value_of_root): Save/restore thread and frame here,
9212 using make_cleanup_restore_current_thread.
9213 * Makefile.in: Update dependecies.
9214
44a67aa7
VP
92152008-03-23 Vladimir Prus <vladimir@codesourcery.com>
9216
680b56ce
AS
9217 * varobj.c (struct varobj_root): Clarify
9218 comment on the frame field.
9219 (varobj_create): Don't set frame if we have no
9220 block.
44a67aa7 9221
b562a0cb
DJ
92222008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9223
9224 PR gdb/544
9225 Suggested by Jan Kratochvil:
9226 * top.c (gdb_rl_operate_and_get_next_completion): Call
9227 rl_redisplay_function.
9228 (gdb_rl_redisplay): New.
9229 (init_main): Set rl_redisplay_function.
9230
ed1bd5f5
JB
92312008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
9232
9233 * aix-thread.c (pdc_read_regs): Fix compiler warning.
9234 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
9235 (store_regs_kernel_thread): Likewise.
9236
b84876c2
PA
92372008-03-21 Pedro Alves <pedro@codesourcery.com>
9238
9239 Linux native async support.
9240
9241 * target.h (struct target_ops): Delete to_async_mask_value and add
9242 to_async_mask.
9243 (target_is_async_p, target_async): Formatting.
9244 (target_async_mask_value): Delete.
9245 (target_async_mask): Delete function declaration, and add new
9246 target macro with the same name.
9247
9248 * target.c (update_current_target): Replace to_async_mask_value by
9249 to_async_mask. Default to_async_mask to return_one.
9250 (target_async_mask): Delete.
9251 (find_default_can_async_p, find_default_is_async_p): New.
9252 (init_dummy_target): register find_default_can_async_p and
9253 find_default_is_async_p on the dummy target.
9254
9255 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
9256 (debug_linux_nat_async): New global.
9257 (show_debug_linux_nat_async): New function.
9258 (linux_nat_async_enabled, linux_nat_async_mask_value)
9259 (linux_nat_event_pipe, linux_nat_num_queued_events)
9260 (linux_nat_async_events_enabled): New globals.
9261 (struct waitpid_result): New struct.
9262 (waitpid_queue): New global.
9263 (queued_waitpid, push_waitpid, drain_queued_events): New.
9264 (my_waitpid): Call queued_waitpid.
9265 (linux_child_follow_fork): Disable async events during the call.
9266 (blocked_mask): Delete.
9267 (sync_sigchld_action, async_sigchld_action): New globals.
9268 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
9269 async mode, block events during the call.
9270 (linux_nat_create_inferior): New.
9271 (linux_nat_attach): In sync mode, restore the mask states. In
9272 async mode, wake the event loop immediatelly.
9273 (detach_callback): Drain all queued events of the lwp we're
9274 detaching from.
9275 (linux_nat_detach): Block async mode, and drain events of the main
9276 process.
9277 (linux_nat_resume): If in async mode, mask async events during the
9278 call. If short circuiting, force event loop to wake up. If
9279 resuming, set target_executing, and register target events in the
9280 event loop.
9281 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
9282 (linux_nat_wait): In async mode, block events during the call.
9283 Only enable/disable passing SIGINT to the inferior in sync mode.
9284 Get events from local waitpid queue. If no interesting events was
9285 found, return to events loop. Reregister target events in the
9286 event loop on exit. In sync mode, no need to reblock SIGCHLD.
9287 (linux_nat_kill): Disable events on entry.
9288 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
9289 here. Detach async mode from the event loop if there are no more
9290 forks available, otherwise leave it on.
9291 (sigchld_handler): Assure this is called only in sync mode.
9292 (linux_async_permitted, linux_async_permitted_1): New globals.
9293 (set_maintenance_linux_async_permitted)
9294 (show_maintenance_linux_async_permitted): New functions.
9295 (linux_nat_is_async_p, linux_nat_can_async_p)
9296 (linux_nat_async_mask): New.
9297 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
9298 (get_pending_events, async_sigchld_handler): New.
9299 (linux_nat_async_events): New.
9300 (async_terminal_is_ours): New global.
9301 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
9302 (async_client_callback, async_client_context): New.
9303 (linux_nat_async_file_handler, linux_nat_async)
9304 (linux_nat_disable_async, linux_nat_enable_async): New.
9305 (linux_nat_add_target): Register linux_nat_create_inferior,
9306 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
9307 linux_nat_async_mask, linux_nat_terminal_inferior and
9308 linux_nat_terminal_ours.
9309 (_initialize_linux_nat): Remove local action variable, and update
9310 code that used it to use sync_sigchld_action. Add new
9311 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
9312 set/show command in the maintenance class. Add new "linux-async"
9313 maintenance set/show command. Block SIGCHLD by default. Setup
9314 async_sichld_action, and sync_sigchld_action. Install the default
9315 async mode.
9316 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
9317 the cancel signals.
9318
9319 * linux-thread-db.c (re_check_for_thread_db): New.
9320 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
9321 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
9322 (thread_db_async_mask): New.
9323 (init_thread_db_ops): Register thread_db_can_async_p,
9324 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
9325
9326 * remote.c (remote_async_mask_value): New.
9327 (remote_return_zero): New.
9328 (init_remote_ops): Register remote_return_zero as callbacks of
9329 to_can_async_p and to_is_async_p.
9330 (remote_can_async_p, remote_is_async_p, remote_async): Update to
9331 use remote_async_mask_value.
9332 (remote_async_mask): New.
9333 (init_remote_async_ops): Remove to_async_mask_value setting and
9334 register remote_async_mask as to_async_mask callback in
9335 remote_async_ops.
9336
9337 * Makefile.in (linux-nat.o): Update.
9338
17faa917
DJ
93392008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9340
9341 * gdbthread.h (add_thread_with_info): New.
9342 * linux-thread-db.c: Add some documentation.
9343 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
9344 (struct private_thread_info): Remove th_valid and ti_valid.
9345 Replace ti with tid.
9346 (thread_get_info_callback): Do not add TID to the new ptid. Do
9347 not cache th or ti.
9348 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
9349 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
9350 new PTID.
9351 (attach_thread): Handle an already-existing thread. Use
9352 add_thread_with_info. Cache the th and tid.
9353 (detach_thread): Verify that private was set. Remove verbose
9354 argument and printing. Update caller.
9355 (thread_db_detach): Do not adjust inferior_ptid.
9356 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
9357 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
9358 (thread_db_wait): Do not use lwp_from_thread.
9359 (thread_db_pid_to_str): Use the cached TID.
9360 (thread_db_extra_thread_info): Check that private is set.
9361 (same_ptid_callback): Delete.
9362 (thread_db_get_thread_local_address): Do not use it or check
9363 is_thread. Check that private is set. Assume that the thread
9364 handle is already cached.
9365 (init_thread_db_ops): Remove to_resume and to_kill.
9366 * thread.c (add_thread_with_info): New.
9367 (add_thread): Use it.
9368 * linux-nat.c (find_thread_from_lwp): Delete.
9369 (exit_lwp): Do not use it. Check print_thread_events. Print before
9370 deleting the thread.
9371 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
9372 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
9373 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
9374 printf_unfiltered for thread exits.
9375 * procfs.c (procfs_wait): Likewise.
9376
6214f497
DJ
93772008-03-21 Chris Demetriou <cgd@google.com>
9378
9379 * symtab.c (rbreak_command): Quote symbol name before passing
9380 it to break_command.
9381
63092375
DJ
93822008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9383
9384 * eval.c (evaluate_subexp_for_address): Clarify error message.
9385 Use value_must_coerce_to_target.
9386 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
9387 * valops.c (value_assign): Call value_coerce_to_target when
9388 assigning to anything but internalvars. Leave GDB-side arrays
9389 as arrays when assigning to internalvars.
9390 (value_must_coerce_to_target, value_coerce_to_target): New.
9391 (value_coerce_array, value_addr): Call value_coerce_to_target.
9392 (value_array): Create the array in GDB's memory instead of
9393 the inferior's.
9394 * value.h (value_must_coerce_to_target, value_coerce_to_target):
9395 Declare.
9396
b21991b0
DJ
93972008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9398
9399 * top.c (quit_confirm): Warn that we will kill the program.
9400
49a834f9
PA
94012008-03-19 Pedro Alves <pedro@codesourcery.com>
9402
9403 * inflow.c (terminal_ours_1): Guard access to
9404 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
9405
ae0d2f24
UW
94062008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
9407 Jim Blandy <jimb@codesourcery.com>
9408 Daniel Jacobowitz <drow@false.org>
9409
9410 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
9411 (dwarf2_read_address): Update prototype.
9412
9413 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
9414 (signed_address_type): Likewise.
9415 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
9416 (execute_stack_op): Update calls to unsigned_address_type,
9417 signed_address_type and dwarf2_read_address. Fix implementation
9418 of DW_OP_deref_size.
9419
9420 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
9421 (dwarf2_per_cu_addr_size): Likewise.
9422 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
9423 (struct dwarf2_loclist_baton): Likewise.
9424
9425 * dwarf2loc.c (find_location_expression): Update calls to
9426 dwarf2_read_address. Use dwarf2_per_cu_objfile and
9427 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
9428 (locexpr_describe_location): Likewise.
9429 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
9430 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
9431 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
9432 to dwarf2_per_cu_addr_size (per_cu).
9433 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
9434 (loclist_read_variable): Likewise.
9435 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
9436
9437 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
9438 instead of baton->objfile.
9439 (dwarf2_per_cu_obfile): New function.
9440 (dwarf2_per_cu_addr_size): Likewise.
9441
9442 * dwarf2-frame.c (struct comp_unit): Move higher.
9443 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
9444 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
9445 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
9446 parameter by using fde->eh_frame_p. Use read_encoded_value
9447 to implement DW_CFA_set_loc.
9448 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
9449 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
9450 execute_stack_op and execute_cfa_program.
9451 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
9452 (size_of_encoded_value): Remove.
9453 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
9454 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
9455 (add_cie): Set cie->unit backlink.
9456 (decode_frame_entry_1): Set cie->addr_size. Update calls to
9457 read_encoded_value.
9458 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
9459
1c8201d1
MD
94602008-03-17 Markus Deuling <deuling@de.ibm.com>
9461
9462 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
9463 gdbarch_bfd_arch_info.
9464
46bba1ef
JB
94652008-03-17 Joel Brobecker <brobecker@adacore.com>
9466
9467 * aix-thread.c (pdc_read_regs): Minor reformatting.
9468
0bcd3e20
VP
94692008-03-17 Vladimir Prus <vladimir@codesourcery.com>
9470
9471 * thread.c (print_thread_info): Don't insist
9472 on having current thread if there are no
9473 threads at all.
9474
9356cf8d
PA
94752008-03-17 Pedro Alves <pedro@codesourcery.com>
9476
9477 * infcmd.c (attach_command_post_wait)
9478 (attach_command_continuation): New.
9479 (attach_command): Support background async execution, and async
9480 execution in synchronous mode.
9481
5c3ce3f7
DJ
94822008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
9483
9484 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
9485 * symmisc.c (dump_symtab_1): Likewise.
9486 * wrapper.c (gdb_value_struct_elt): Likewise.
9487
fa2c6a57
PA
94882008-03-17 Pedro Alves <pedro@codesourcery.com>
9489
9490 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
9491
02f3fc28
PA
94922008-03-17 Pedro Alves <pedro@codesourcery.com>
9493
9494 * linux-nat.c (linux_nat_filter_event): New, refactored from
9495 linux_nat_wait.
9496 (linux_nat_wait): Call linux_nat_filter_event.
9497
2f77b315
UW
94982008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
9499
9500 * top.c (execute_command): Fix uninitialized variable error.
9501
f01be29b
NH
95022008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
9503
680b56ce
AS
9504 * Makefile.in (amd64nbsd-nat.o): New dependency.
9505 * amd64nbsd-nat.c: Include "nbsd-nat.h".
9506 (_initialize_amd64nbsd_nat): Update target vector to use
9507 nbsd_pid_to_exec_file.
9508 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
f01be29b 9509
6cf32704
VP
95102008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9511
9512 Remove ignoring leading exec events code.
680b56ce
AS
9513 * fork-child.c (startup_inferior): Do not set
9514 inferior_ignoring_leading_exec_events.
9515 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
9516 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
9517 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
9518 (handle_inferior_event): Remove code for ignoring leading exec
9519 events.
9520 * target.c (update_current_target): Do not inherit, or default,
9521 to_reported_exec_events_per_exec_call.
9522 (debug_to_reported_exec_events_per_exec_call): Remove.
9523 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
9524 * target.h (target_reported_exec_events_per_exec_call): Remove.
9525 (struct target): Remove the to_reported_exec_events_per_exec_call
9526 field.
6cf32704 9527
8e8901c5
VP
95282008-03-15 Vladimir Prus <vladimir@codesourcery.com>
9529
9530 Implement -thread-info.
680b56ce 9531 * gdbthread.h (print_thread_info): Declare.
8e8901c5 9532
680b56ce
AS
9533 * thread.c (print_thread_info): New, extracted
9534 from info_threads_command and adjusted to
9535 work for CLI and MI.
9536 (info_threads_command): Use print_thread_info.
8e8901c5
VP
9537 * Makefile.in: Update dependencies.
9538
680b56ce
AS
9539 * mi/mi-cmds.c (mi_cmds): Specify a handler
9540 for -thread-info.
9541 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
9542 * mi/mi-main.c (mi_cmd_thread_info): New.
9543 (mi_cmd_list_features): Include 'thread-info'.
8e8901c5 9544
7d1e6fb8
KB
95452008-03-14 Kevin Buettner <kevinb@redhat.com>
9546
9547 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
9548 to decide whether to match instruction patterns using "sw" and "sd".
9549
89113898
PA
95502008-03-14 Pedro Alves <pedro@codesourcery.com>
9551
9552 * infcmd.c (jump_command): Postpone disabling stdin until after
9553 the possible query.
9554
64a0ac84
PA
95552008-03-14 Pedro Alves <pedro@codesourcery.com>
9556
9557 * inflow.c (gdb_getpgrp): New.
9558 (gdb_has_a_terminal): Use get_getpgrp.
9559 (terminal_ours_1): If attach_flag is set, don't refetch
9560 inferior_process_group.
9561
1fddbabb
PA
95622008-03-14 Pedro Alves <pedro@codesourcery.com>
9563
9564 * features/library-list.dtd: Allow "section" elements as children
9565 of "library". Add "section" element and describe its attributes.
9566
9567 * solib-target.c (struct lm_info): Add section_bases member.
9568 (library_list_start_segment): Error out if seen a section element.
9569 (library_list_start_section): New.
9570 (library_list_end_library): New.
9571 (solib_target_free_library_list): Free section_bases.
9572 (section_attributes): New.
9573 (library_children): Make "segment" optional. Add "section" child.
9574 (library_list_children): Register library_list_end_library.
9575 (solib_target_relocate_section_addresses): Handle section bases.
9576
9577 * NEWS: Mention new qXfer:libraries:read section offsets support.
9578
712af3be
VP
95792008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9580
9581 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
9582 (make_exec_error_cleanup): Remove declarations.
9583 * utils.c (exec_error_cleanup_chain): Remove.
9584 (do_exec_error_cleanups, discard_exec_error_cleanups)
9585 (make_exec_error_cleanup): Remove.
9586 * event-loop.c (start_event_loop): Adjust call to
9587 async_enable_stdin.
9588 * event-top.c (async_enable_stdin): Remove the paramater dummy.
9589 (async_disable_stdin): Don't register async_enable_stdin via
9590 cleanup.
9591 * inf-loop.c (inferior_event_handler): Don't
9592 call do_exec_error_cleanups. Call async_enable_stdin instead.
9593 * event-loop.c (start_event_loop): Adjust call to
9594 async_enable_stdin.
9595 * tui/tui-interp.c (tui_command_loop): Adjust call to
9596 async_enable_stdin.
9597
32c1e744
VP
95982008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9599
9600 Async mode fixes.
680b56ce
AS
9601 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
9602 * breakpoint.c (bpstat_do_actions): In async mode,
9603 don't jump to top expecting stop_bpstat to be already
9604 updated.
9605 * event-loop.c (start_event_loop): Call async_enable_stdin
9606 on exception.
9607 * event-top.c (async_enable_stdin): Do nothing if sync_execution
9608 is not set.
9609 (command_handler): Do not setup continuation here.
9610 (command_line_handler_continuation): Move to...
9611 * top.c (command_line_handler_continuation): ... here.
9612 (execute_command): In async mode, register continuation.
9613 Don't check frame's language in running in async mode.
9614 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
9615 * inf-loop.c (complete_execution): Inline into...
9616 (inferior_event_handler): ... here. Clear target_executing before
9617 doing any cleanups. Don't try to show prompt if the target was
9618 resumed.
9619 * infcmd.c (signal_command): Add support for async mode.
9620 (finish_command): Only add continuation if the target was
9621 successfully resumed.
9622 * remote.c (init_async_opts): Register to_get_thread_local_address
9623 handler.
9624 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
9625 with sync_execution.
9626 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
9627 on exception.
32c1e744 9628
c04ea773
DJ
96292008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
9630
9631 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
9632 * exec.c (exec_bfd_mtime): Define.
9633 (exec_close): Clear it.
9634 (exec_file_attach): Set it.
9635 * gdbcore.h (exec_bfd_mtime): Declare.
9636 * source.c (find_source_lines): Do not use bfd_get_mtime.
9637
952dc227
VP
96382008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9639
9640 * top.c (simplified_command_loop): Remove.
9641
4cf46804
VP
96422008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9643
9644 Remove unused remote.c hooks.
680b56ce
AS
9645 * remote.c (deprecated_target_resume_hook)
9646 (deprecated_target_wait_loop_hook): Remove.
9647 (remote_resume): Do not call deprecated_target_resume_hook.
9648 (remote_wait): Do not call deprecated_target_wait_loop_hook.
9649 (remote_async_wait): Likewise.
4cf46804 9650
683f2885
VP
96512008-03-14 Vladimir Prus <vladimir@codesourcery.com>
9652
9653 Implement MI notification for new threads.
680b56ce
AS
9654 * doc/observer.texi (new_thread): Document.
9655 * observer.sh: Forward declare struct thread_info.
9656 * thread.c (add_thread): Notify observer.
9657
9658 * interps.h (interp_init_ftype): New parameter
9659 top_level.
9660 (interp_set): Likewise.
9661 (top_level_interpreter_data): Declare.
9662 * interps.c (interp_set): New parameter top_level.
9663 Pass it to interpreter's init function. Remember
9664 top level interpreter.
9665 (interpreter_exec_cmd): Adjust.
9666 (top_level_interpreter_data): New.
9667 * main.c (captured_main): Pass 1 for top_level
9668 parameter of interp_set.
683f2885 9669 * cli/cli-interp.c (cli_interpreter_init): New
680b56ce
AS
9670 parameter top_level.
9671 * tui/tui-interp.c (tui_init): New parameter top_level.
683f2885 9672
680b56ce
AS
9673 * mi/mi-interp.c (mi_new_thread): New.
9674 (mi_interpreter_init): If top level, register
9675 observer for new threads.
683f2885 9676
680b56ce 9677 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
683f2885 9678
ff9b3928
PA
96792008-03-14 Pedro Alves <pedro@codesourcery.com>
9680
9681 * top.c (execute_command): Disable break and stop
9682 commands in async mode.
9683
b18392ef
PA
96842008-03-14 Pedro Alves <pedro@codesourcery.com>
9685
9686 revert:
9687 2008-03-14 Pedro Alves <pedro@codesourcery.com>
9688 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9689 Call target_stop in the INF_QUIT_REQ case.
9690 * Makefile.in (inf-loop.o): Update.
9691
0aca9f07
PA
96922008-03-14 Pedro Alves <pedro@codesourcery.com>
9693
9694 * inf-loop.c (inferior_event_handler): Don't include remote.h.
9695 Call target_stop in the INF_QUIT_REQ case.
9696 * Makefile.in (inf-loop.o): Update.
9697
0b4e556c
PA
96982008-03-14 Pedro Alves <pedro@codesourcery.com>
9699
9700 * top.c (execute_command): Enable break, info and interrupt
9701 commands in async mode.
9702
8defab1a
DJ
97032008-03-13 Vladimir Prus <vladimir@codesourcery.com>
9704 Daniel Jacobowitz <dan@codesourcery.com>
9705
9706 * breakpoint.h (breakpoint_restore_shadows): New
9707 declaration.
9708 * breakpoint.c (breakpoint_restore_shadows): New.
9709 (read_memory_nobpt): Delete.
9710 * gdbcore.h (read_memory_nobpt): Delete declaration.
9711 * target.c (memory_xfer_partial): Call
9712 breakpoint_restore_shadows.
9713 (restore_show_memory_breakpoints)
2da16c8c 9714 (make_show_memory_breakpoints_cleanup): New.
8defab1a 9715 (show_memory_breakpoints): New.
2da16c8c 9716 * target.h (make_show_memory_breakpoints_cleanup): Declare.
8defab1a
DJ
9717 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
9718 Make sure we see memory breakpoints when checking if
9719 breakpoint is still there.
9720 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
9721 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
9722 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
9723 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
9724
fd532e2e
PA
97252008-03-12 Pedro Alves <pedro@codesourcery.com>
9726
9727 * thread.c (add_thread): Use printf_unfiltered to print.
9728
f749779f 97292008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
9730
9731 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
9732 that is true only on x86-solaris and x86_64-solaris.
9733 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
9734 with proc_get_LDT_entry.
9735
97362008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
9737
9738 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
9739 * config.in, configure: Regenerate.
9740 * fork-child.c (fork_inferior): Call create_tty_session.
9741 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
9742 (create_tty_session): New function.
9743 * terminal.h: Declare create_tty_session.
9744
4fbb74a6
AM
97452008-03-12 Alan Modra <amodra@bigpond.net.au>
9746
9747 PR 5900
9748 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
9749 * mipsread.c: Include elf/internal.h.
9750 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
9751 to internal range.
9752
20a6ec49
MD
97532008-03-11 Markus Deuling <deuling@de.ibm.com>
9754
9755 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
9756 to get at the current architecture and at the target specific vector.
9757 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
9758 remove define of I387_ST0_REGNUM.
9759
9760 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
9761
9762 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
9763 get at the current architecture
9764 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
9765 parameter.
9766
9767 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
9768 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
9769
9770 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
9771 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
9772 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
9773
9774 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
9775 at the target specific vector.
9776
9777 (i386_get_longjmp_target): Use get_frame_arch to get at the current
9778 architecture. Use gdbarch_tdep to get at the target specific vector.
9779
9780 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
9781 update caller. Use gdbarch_tdep to get at the target specific vector.
9782
9783 (i386_register_to_value: Use get_frame_arch to get at the current
9784 architecture.
9785
9786 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
9787 parameter.
9788
9789 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9790 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
9791 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
9792 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
9793
9794 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
9795 undef's.
9796
9797 (i387_convert_register_p, i387_register_to_value,
9798 i387_value_to_register): Update call for i386_fp_regnum_p.
9799
9800 * i387-tdep.h: Remove comment.
9801 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
9802 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
9803 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
9804 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
9805 I387_MXCSR_REGNUM): Add target specific vector as parameter.
9806
ccd213ac
DJ
98072008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
9808
9809 * Makefile.in (fork-child.o): Update.
9810 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
9811 argument. Gather all gdbserver features together.
9812 * fork-child.c (exec_wrapper): New variable.
9813 (fork_inferior): Use it.
9814 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
9815 (unset_exec_wrapper_command, _initialize_fork_child): New.
9816
98172008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
9818
9819 * source.c (directory_command): Modify the determination of
9820 condition of terminal "from_tty".
9821
22566fbd
DJ
98222008-03-10 Matt Rice <ratmice@gmail.com>
9823
9824 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
9825
9971ac47
UW
98262008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
9827
9828 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
9829 of the data passing to strtoulst function.
9830 (info_spu_signal_command): Likewise.
9831
835670cf
VP
98322008-03-08 Vladimir Prus <vladimir@codesourcery.com>
9833
9834 * mi/mi-interp.c (mi_command_loop): Remove
9835 commented-out code.
680b56ce 9836
be86555c
JB
98372008-03-07 Joel Brobecker <brobecker@adacore.com>
9838
9839 * remote.c (extended_remote_attach_1): Make local variable pid an int
9840 instead of a pid_t.
9841
4d7b2d5b
JB
98422008-03-07 Joel Brobecker <brobecker@adacore.com>
9843
9844 * solib-svr4.c (svr4_same_1): New function, originally extracted
9845 from svr4_same and expanded to handle the sparc64 case.
9846 (svr4_same): Move up and reimplement using svr4_same_1.
9847 (enable_break): Use svr4_same_1 to do shared library name comparisons.
9848
61fed90e
RR
98492008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
9850
9851 * MAINTAINERS: Move self to Paper trail.
9852
b803fb0f
DJ
98532008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
9854
9855 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
9856 * event-loop.c (call_async_signal_handler): New.
9857 * event-loop.h (call_async_signal_handler)
9858 (gdb_call_async_signal_handler): Declare.
9859 (mark_async_signal_handler): Add comments.
9860 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
9861 * mingw-hdep.c (sigint_event, sigint_handler): New.
9862 (gdb_select): Use them. Wait for the readline signal handler
9863 to finish.
9864 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
9865 * posix-hdep.c (gdb_call_async_signal_handler): New function.
9866 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
9867 New.
9868 (remote_fileio_ctrl_c_signal_handler): Use
9869 gdb_call_async_signal_handler.
9870 (initialize_remote_fileio): Initialize sigint_fileio_token.
9871 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
9872 not initialize tokens here.
9873 (handle_remote_sigint_twice): Likewise. Reinstall
9874 handle_remote_sigint.
9875 (async_remote_interrupt_twice): Just call interrupt_query.
9876 (cleanup_sigint_signal_handler): Do not delete tokens.
9877 (remote_interrupt, remote_interrupt_twice): Use
9878 gdb_call_async_signal_handler.
9879 (interrupt_query): Reinstall the default signal handler.
9880 (_initialize_remote): Initialize tokens here.
9881
8f4d54ed
JB
98822008-03-04 Joel Brobecker <brobecker@adacore.com>
9883
9884 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
9885 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
9886 Change the type of the lr register to code_ptr.
9887 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
9888 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
9889 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
9890 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
9891 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
9892 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
9893 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
9894
95ece428
JW
98952008-03-03 James E. Wilson <wilson@tuliptree.org>
9896
9897 * MAINTAINERS: Update my email address.
9898
686a5eed
KS
98992008-03-03 Keith Seitz <keiths@redhat.com>
9900
9901 From Dave Murphy <davem@devkitpro.org>:
9902 * configure.ac: Set tcl configdir to win under mingw.
9903 * configure: Regenerate.
9904
fa4727a6
DJ
99052008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
9906
9907 * breakpoint.c (fetch_watchpoint_value): New function.
9908 (update_watchpoint): Set and clear val_valid. Use
9909 fetch_watchpoint_value. Handle unreadable values on the
9910 value chain. Correct check for user-requested array watchpoints.
9911 (breakpoint_init_inferior): Clear val_valid.
9912 (watchpoint_value_print): New function.
9913 (print_it_typical): Use it. Do not free or clear old_val. Print
9914 watchpoints even if old_val == NULL.
9915 (watchpoint_check): Use fetch_watchpoint_value. Check for values
9916 becoming readable or unreadable.
9917 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
9918 (do_enable_watchpoint): Likewise.
9919 * breakpoint.h (struct breakpoint): Update comment for val. Add
9920 val_valid.
9921 * NEWS: Mention watchpoints on inaccessible memory.
9922
9b7d9019 99232008-02-29 Daniel Jacobowitz <dan@codesourcery.com>
c03374d5
DJ
9924
9925 * Makefile.in (i386-nat.o): Update.
9926 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
9927 i386_use_watchpoints.
9928 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
9929 i386_use_watchpoints.
9930 * i386-nat.c (i386_stopped_data_address): Take two arguments.
9931 (i386_stopped_by_watchpoint): Update call.
9932 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
9933 * config/i386/nm-i386.h: Conditionalize definitions on
9934 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
9935 (i386_use_watchpoints): Declare.
9936 (i386_stopped_data_address): Update.
9937 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9938 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
9939
c24d7425 99402008-02-29 Joel Brobecker <brobecker@adacore.com>
9941
9942 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
9943 * version.in: Bump version to 6.8.50.20080229-cvs.
9944
a7dfd010
MD
99452008-02-28 Markus Deuling <deuling@de.ibm.com>
9946
9947 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
9948 properly.
9949
258c00cc
TT
99502008-02-28 Tom Tromey <tromey@redhat.com>
9951
9952 * infcmd.c (notice_args_read): Print result of get_inferior_args.
9953
8edfe269
DJ
99542008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9955
9956 * infcmd.c (kill_if_already_running): Make static. Use
9957 target_require_runnable.
9958 * target.c (target_require_runnable): New.
9959 * target.h (target_require_runnable): Declare.
9960
0d6ba1b1
DJ
99612008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
9962
9963 * frame.c (reinit_frame_cache): Only annotate if frames were
9964 previously valid.
9965
6fe305f7
UW
99662008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9967
9968 * regformats/reg-ppc.dat: Rename "ps" to "msr".
9969 * regformats/reg-ppc64.dat: Likewise.
9970
9b4b61c8
UW
99712008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9972
9973 * features/Makefile (%.dat): Emit xmltarget statement.
9974
9975 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
9976 Generate code to set gdbserver_xmltarget in init_registers_${name}.
9977
9978 * regformats/arm-with-iwmmxt.dat: Regenerate.
9979 * regformats/mips64-linux.dat: Regenerate.
9980 * regformats/mips-linux.dat: Regenerate.
9981 * regformats/rs6000/powerpc-32.dat: Regenerate.
9982 * regformats/rs6000/powerpc-64.dat: Regenerate.
9983 * regformats/rs6000/powerpc-e500.dat: Regenerate.
9984
9985 * regformats/reg-arm.dat: Add xmlarch statement.
9986 * regformats/reg-i386.dat: Likewise.
9987 * regformats/reg-i386-linux.dat: Likewise.
9988 * regformats/reg-x86-64-linux.dat: Likewise.
9989 * regformats/reg-spu.dat: Likewise.
9990
20b4711e
DJ
99912008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9992
9993 * remote.c (remote_wait, remote_async_wait): Stop if we receive
9994 an error.
9995
1843f87b
DJ
99962008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
9997
9998 * utils.c (debug_timestamp): New.
9999 (vfprintf_unfiltered): Print timestamps if requested.
10000 (show_debug_timestamp): New.
10001 (initialize_utils): Register "set debug timestamp".
10002 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
10003
6a048695
JB
100042008-02-27 Joel Brobecker <brobecker@adacore.com>
10005
10006 * breakpoint.c (skip_prologue_sal): New function.
10007 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
10008 computed from a line number.
10009
0b998f49
JB
100102008-02-27 Joel Brobecker <brobecker@adacore.com>
10011
10012 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
10013 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
10014 Set PC register type to "code_ptr".
10015 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
10016 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
10017 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
10018 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
10019 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
10020 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
10021 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
10022 Regenerate.
10023
d05b4ac3
UW
100242008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
10025
10026 * regformats/regdat.sh: Rename init_registers function in
10027 generated file to init_registers_${name}.
10028
10029 * regformats/reg-crisv32.dat: Set "name" to crisv32.
10030 * regformats/reg-ppc64.dat: Set "name" to ppc64.
10031 * regformats/reg-s390x.dat: Set "name" to s390x.
10032
a5d9d57d
DJ
100332008-02-26 Greg Law <glaw@undo-software.com>
10034
10035 * regcache.c (registers_changed): Call reinit_frame_cache.
10036
e25c958c
DJ
100372008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
10038
10039 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
10040 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
10041 and svr4_fetch_objfile_link_map.
10042 * Makefile.in (sh-linux-tdep.o): Update.
10043
5daa78cc
TJB
100442008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
10045
10046 * amd64-tdep.c (amd64_classify): Add support for decimal float
10047 types.
10048 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
10049 use the struct return convention.
10050
54e52265
VP
100512008-02-26 Nick Roberts <nickrob@snap.net.nz>
10052
10053 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
10054 to old format. Discard breakpoint address if shared library is
10055 unloaded.
10056 (breakpoint_1): Adjust formatting of table header accordingly.
10057
d8f2712d
VP
100582008-02-25 Vladimir Prus <vladimir@codesourcery.com>
10059
10060 * remote.c (remote_get_threadlist): If the response
10061 is empty, don't try to parse it.
10062
05ce04a4
VP
100632008-02-23 Vladimir Prus <vladimir@codesourcery.com>
10064
10065 Unbreak 'target async'.
680b56ce
AS
10066 * serial.c (serial_async): Set the
10067 handler function before enabling async
10068 mode.
05ce04a4 10069
b36ec657
DJ
100702008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
10071
10072 * solib-svr4.c (enable_break): Convert r_brk to a code address.
10073
df7df359
PA
100742008-02-21 Pedro Alves <pedro@codesourcery.com>
10075
10076 * remote.c (extended_remote_attach_1): Set attach_flag.
10077 (extended_remote_create_inferior_1): Clear attach_flag.
10078
7cd25cfc
DJ
100792008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
10080
10081 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
10082 r_brk_offset.
10083 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
10084 * solib-svr4.c (solib_svr4_r_brk): New.
10085 (open_symbol_file_object, svr4_current_sos): Always check the
10086 debug base.
10087 (svr4_fetch_objfile_link_map): Do not set debug_base.
10088 (enable_break): Use r_brk if it is set.
10089 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
10090 (svr4_lp64_fetch_link_map_offsets): Likewise.
10091 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
10092
07ea644b
MD
100932008-02-20 Markus Deuling <deuling@de.ibm.com>
10094 Mark Kettenis <kettenis@gnu.org>
10095
10096 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
10097 trad_frame_saved_reg.
680b56ce 10098 (trad-frame.h): New include.
07ea644b
MD
10099
10100 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
680b56ce 10101 instead of frame_obstack_zalloc.
07ea644b
MD
10102 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
10103
680b56ce 10104 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
07ea644b 10105
40887e1a
MD
101062008-02-20 Markus Deuling <deuling@de.ibm.com>
10107
10108 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
10109 from disassemble_info instead of gdbarch_byte_order.
10110
10111 * mips-tdep.c (gdb_print_insn_mips): Likewise.
10112 * arm-tdep.c (gdb_print_insn_arm): Likewise.
10113
ae4b2284
MD
101142008-02-20 Markus Deuling <deuling@de.ibm.com>
10115
10116 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
10117 gdbarch as parameter.
10118
10119 * gdbarch.{c,h}: Regenerate.
10120
10121 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10122 parameter.
10123 * mem-break.c (default_memory_insert_breakpoint)
10124 (default_memory_remove_breakpoint): Likewise.
10125 * target.h (default_memory_remove_breakpoint)
10126 (default_memory_insert_breakpoint): Likewise.
10127
10128 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
10129 parameter. Replace current_gdbarch by gdbarch.
10130 * m32r-tdep.c (m32r_memory_insert_breakpoint)
10131 (m32r_memory_remove_breakpoint): Likewise.
10132
d9bf65d5
DJ
101332008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
10134
10135 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
10136
b93b6ca7
JB
101372008-02-19 Joel Brobecker <brobecker@adacore.com>
10138
10139 * NEWS: Add entry describing Add support improvements.
10140
4ed226fe
MD
101412008-02-18 Markus Deuling <deuling@de.ibm.com>
10142
10143 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
10144 M68K_FP0_REGNUM.
10145
caaa79ad
MD
101462008-02-18 Markus Deuling <deuling@de.ibm.com>
10147
10148 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
10149 register_offset_hack anymore.
10150
10151 * regcache.{c,h} (register_offset_hack): Remove.
10152
e38c262f
MD
101532008-02-18 Markus Deuling <deuling@de.ibm.com>
10154
10155 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
10156
10157 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
10158 current_gdbarch by gdbarch.
10159 (hppa64_hpux_find_global_pointer): Likewise.
10160 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
10161 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
10162 find_global_pointer.
10163
10164 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
10165 parameter.
10166 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
10167
10168 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
10169 of gdbarch_num_regs.
10170
10171 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
680b56ce 10172 replace current_gdbarch by gdbarch.
e38c262f
MD
10173 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
10174
206988c4
MD
101752008-02-18 Markus Deuling <deuling@de.ibm.com>
10176
10177 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
10178 and replace current_gdbarch by gdbarch.
10179
10180 (store_register): Update call for exec_one_dummy_insn.
10181 (fetch_register, store_register): Update call of regmap.
10182
10183 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
10184 parameter and replace current_gdbarch by gdbarch.
680b56ce 10185
206988c4
MD
10186 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
10187 the current architecture. Update call for getregs_supplies and
10188 getfpregs_supplies.
10189 (ppcnbsd_fetch_inferior_registers): Likewise.
10190
680b56ce 10191 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
206988c4
MD
10192 replace current_gdbarch by gdbarch.
10193 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
10194 get_regcache_arch to get at the current architecture. Update call for
10195 getfpregs_supplies.
10196
f642be6b
MD
101972008-02-18 Markus Deuling <deuling@de.ibm.com>
10198
10199 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
680b56ce 10200 variables.
f642be6b 10201
b1f2bf01
MD
102022008-02-15 Markus Deuling <deuling@de.ibm.com>
10203
10204 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
10205
ee163bf5
VP
102062008-02-14 Vladimir Prus <vladimir@codesourcery.com>
10207
10208 * NEWS: Mention pending breakpints in MI.
680b56ce 10209
f6fbcbf9
MD
102102008-02-14 Markus Deuling <deuling@de.ibm.com>
10211
10212 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
10213
36af4ef6
MD
102142008-02-13 Markus Deuling <deuling@de.ibm.com>
10215
10216 Add script to build and test GDB using enable-targets=all.
10217
10218 * gdb_buildall.sh: New file.
10219
94a0e877
MG
102202008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
10221
10222 * NEWS (New native configurations): Xtensa GNU/Linux.
10223 (New targets): Xtensa GNU/Linux.
10224 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
10225 xtensa-linux-tdep.o
10226 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
10227 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
10228 * configure.tgt (xtensa*-*-linux*): New entry.
10229 * xtensa-config.c (xtensa_tdep): New variable.
10230 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
10231 (rmap): Change format based on new macro XTREG.
10232 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
10233 * xtensa-linux-nat.c: New.
10234 * xtensa-linux-tdep.c: New.
10235 * xtensa-xtregs.c: New.
10236 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
10237 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
10238 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
10239 (xtensa_register_t): New field coprocessor.
10240 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
10241 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
10242 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
10243 Update to handle privileged registers.
10244 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
10245 (xtensa_push_dummy_call): Set windowstart register correctly.
10246 (call0_analyze_prologue): Initialize xtensa_default_isa.
10247 (xtensa_derive_tdep): New.
10248 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
10249 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
10250 Call xtensa_derive_tdep().
10251 * config/xtensa/linux.mh: New.
10252 * regformats/reg-xtensa.dat: New.
10253
b7ee1b0a 102542008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
10255
10256 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
10257 (filenames.h): New include.
10258 * Makefile.in (corelow.o): Add dependency for filenames.h.
10259
8da2a1df
DJ
102602008-02-08 Doug Evans <dje@google.com>
10261
10262 * source.c (find_and_open_source): Always rewrite absolute filenames.
10263
776592bf
DE
102642008-02-07 Doug Evans <dje@google.com>
10265
10266 * breakpoint.c: #include "hashtab.h".
10267 (ambiguous_names_p): New fn.
10268 (update_breakpoint_locations): When restoring bp enable status, don't
10269 compare function names if any functions have same name.
10270 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
10271
d6565258
JB
102722008-02-07 Joel Brobecker <brobecker@adacore.com>
10273
10274 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
10275 instead of just a VEC*. Update use of SV.
10276 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
10277
6d53d0af
JB
102782007-02-07 Joel Brobecker <brobecker@adacore.com>
10279
10280 * NEWS: Put all new commands since gdb-6.7 together.
10281
2ba95b9b
JB
102822007-02-07 Joel Brobecker <brobecker@adacore.com>
10283
10284 * ada-lang.c: #include "vec.h".
10285 (struct string_vector, new_string_vector, string_vector_append):
10286 Delete.
10287 (char_ptr): New typedef.
10288 (DEF_VEC_P (char_ptr)): New VEC type.
10289 (symbol_completion_add): Update profile to take the new VEC type
10290 instead of the old string_vector structure. Update code accordingly.
10291 (ada_make_symbol_completion_list): Use the new VEC type instead of
10292 the old string_vector structure, and update the code accordingly.
10293 * Makefile.in (ada-lang.o): Add dependency on vec.h.
10294
4ae0885a
PM
102952008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
10296
10297 * p-exp.y: Set current_type in missing places.
10298 (leftdiv_is_integer): New static variable.
10299 Typecast right operand of BINOP_DIV to long_double if both operands
10300 are integers.
10301
06b1d59c
MR
103022008-02-06 Maciej W. Rozycki <macro@mips.com>
10303
10304 * remote-mips.c (set_breakpoint): Rename to...
10305 (mips_set_breakpoint): ... this.
10306 (clear_breakpoint): Rename to...
10307 (mips_clear_breakpoint): ... this.
10308 (common_breakpoint): Rename to...
10309 (mips_common_breakpoint): ... this.
10310 (check_lsi_error): Rename to...
10311 (mips_check_lsi_error): ... this.
10312
41d27058
JB
103132007-02-05 Joel Brobecker <brobecker@adacore.com>
10314
10315 * language.h (struct language_defn): Add new field
10316 la_make_symbol_completion_list.
10317 * symtab.c (default_make_symbol_completion_list): Renames
10318 make_symbol_completion_list.
10319 (make_symbol_completion_list): New function.
10320 * symtab.h (default_make_symbol_completion_list): Add declaration.
10321 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
10322 (auto_language, local_language): Likewise.
10323 * objc-lang.c (objc_language_defn): Likewise.
10324 * scm-lang.c (scm_language_defn): Likewise.
10325 * m2-lang.c (m2_language_defn): Likewise.
10326 * f-lang.c (f_language_defn): Likewise.
10327 * jv-lang.c (java_language_defn): Likewise.
10328 * p-lang.c (pascal_language_defn): Likewise.
10329 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
10330 (minimal_language_defn): Likewise.
10331 * ada-lang.c (struct string_vector): New structure.
10332 (new_string_vector, string_vector_append, ada_unqualified_name)
10333 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
10334 (ada_make_symbol_completion_list): New functions.
10335 (ada_language_defn): Set la_make_symbol_completion_list.
10336 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
10337 this function is static.
10338
ee3a2f01
KB
103392008-02-05 Kevin Buettner <kevinb@redhat.com>
10340
10341 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
10342 to account for call site optimizations.
10343
d844e34b
JB
103442008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
10345
10346 * tracepoint.c (read_actions): Handle end-of-text indicator
10347 in action list properly. (Committed by Jim Blandy)
10348
02e4669d
JB
103492008-02-05 Jim Blandy <jimb@red-bean.com>
10350
10351 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
10352 pseudoregister, not an internal error.
85ecb32b 10353 Reported by: Andrzej Zaborowski
02e4669d 10354
c39c8256
VP
103552008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10356
10357 * varobj.c (c_value_of_variable): Use xstrdup.
10358
ae7d22a6
VP
103592008-02-04 Vladimir Prus <vladimir@codesourcery.com>
10360
10361 Update stored rendition of varobj value when format changes.
10362 * varobj.c (varobj_set_display_format): Recomputed
680b56ce
AS
10363 print_value.
10364 (c_value_of_variable): Return print_value.
ae7d22a6 10365
81fe8080
DE
103662008-02-03 Doug Evans <dje@google.com>
10367
301f0ecf
DE
10368 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
10369 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
10370 * valops.c (value_one): New function.
10371 * value.h (value_one): Declare.
10372
10373 Fix argument promotion for binary arithmetic ops for C.
10374 * valarith.c (unop_result_type): New fn.
10375 (binop_result_type): New fn.
10376 (value_binop): Move result type computation to binop_result_type.
10377 (value_pos, value_neg, value_complement): Move result type
10378 computation to unop_result_type.
10379
81fe8080
DE
10380 PR 2384
10381 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10382 Return basetype, fieldno if found. All callers updated.
10383 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
10384 objfile.
10385 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
10386 * symfile.h (fill_in_vptr_fieldno): Delete.
10387
41808ebe
DE
103882008-02-02 Doug Evans <dje@google.com>
10389
f8597ac3
DE
10390 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
10391
41808ebe
DE
10392 * typeprint.c (*): Whitespace cleanup.
10393
f964a756
MK
103942008-02-02 Mark Kettenis <kettenis@gnu.org>
10395 Luis Machado <luisgpm@br.ibm.com>
680b56ce 10396 Thiago Jung Bauermann <bauerman@br.ibm.com>
f964a756
MK
10397
10398 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
10399 don't fit into registerson the stack the way GCC does.
10400
b06ead72
JB
104012008-02-01 Joel Brobecker <brobecker@adacore.com>
10402
10403 * symtab.c (symbol_set_names): Do not add an entry in the demangling
10404 hash table for Ada symbols. Just store the linkage name as is,
10405 and leave the demangled_name as NULL.
10406
2cfa0c8d
JB
104072007-02-01 Joel Brobecker <brobecker@adacore.com>
10408
10409 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10410 in the global scope.
10411 (new_symbol): Likewise.
10412
98deb0da 104132008-02-01 Vladimir Prus <vladimir@codesourcery.com>
680b56ce
AS
10414
10415 * breakpoint.c (break_command_1): Return void.
10416 (break_command_really): Return void. Rethrow
10417 exceptions instead of returning.
10418 (gdb_breakpoint): Remove the error_message parameter.
10419 Return void. Rename to set_breakpoint.
10420 * gdb.h (gdb_breakpoint): Rename and move to...
98deb0da 10421 * breakpoint.h (set_breakpoint): ...here.
680b56ce
AS
10422 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
10423 event hooks even if exception is thrown. Adjust to
10424 gdb_breakpoint interface changes.
10425
98deb0da 10426
ce0451ad
TJB
104272008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
10428
10429 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
10430 float in both first and second word in the doubleword, to support
10431 old and new ABIs.
10432
723a2275
VP
104332008-02-01 Vladimir Prus <vladimir@codesourcery.com>
10434
10435 Properly rethrow exception. This fixes errors
10436 about non-existent functions for -break-insert.
680b56ce
AS
10437 * breakpoint.c (break_command_really): Use throw_exception
10438 for rethrowing. If rethrowing, don't print the exception.
723a2275 10439
d64a946d
TJB
104402008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10441
10442 * NEWS: Mention Decimal Floating Point support.
10443
02b156f5
JB
104442008-01-31 Joel Brobecker <brobecker@adacore.com>
10445
10446 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
10447 value type to builtin_type_void_func_ptr.
10448
a16b8bcd
UW
104492008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
10450
10451 * s390-tdep.c (is_float_singleton, is_float_like,
10452 alignment_of, s390_return_value): Make checks for
10453 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
10454
f949c649
TJB
104552008-01-31 Luis Machado <luisgpm@br.ibm.com>
10456 Thiago Jung Bauermann <bauerman@br.ibm.com>
10457
10458 * infcmd.c (default_print_registers_info): Also print hex
10459 raw contents for TYPE_CODE_DECFLOAT registers.
10460 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
10461 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
10462 (rs6000_register_name): Add support for DFP pseudo-registers.
10463 (rs6000_pseudo_register_type): Likewise.
10464 rs6000_pseudo_register_reggroup_p): Likewise.
10465 (ppc_pseudo_register_read): New function.
10466 (ppc_pseudo_register_write): Likewise.
10467 (rs6000_pseudo_register_read): Likewise.
10468 (rs6000_pseudo_register_write): Likewise.
10469 (e500_pseudo_register_read): Move checks to
10470 rs6000_pseudo_register_read.
10471 (e500_pseudo_register_write): Move checks to
10472 rs6000_pseudo_register_write.
10473 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
10474 rs6000_pseudo_register_read and rs6000_pseudo_register_write
10475 in gdbarch if SPE or DFP is available. Adjust gdbarch's
10476 num_pseudo_regs to account for DFP pseudo regs.
10477
5a9e69ba
TJB
104782008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
10479
10480 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
10481 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
10482 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
10483 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
10484 e500_pseudo_register_read, e500_pseudo_register_write): Use
10485 IS_SPE_PSEUDOREG macro.
10486 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
10487 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
10488 Remove initialization of tdep->ppc_ev31_regnum.
10489
4e885b20
JB
104902008-01-08 Paul Hilfinger <hilfinger@adacore.com>
10491
10492 * printcmd.c (print_formatted): Handle references as for unformatted
10493 prints.
10494
80f064a2
JB
104952008-01-30 Joel Brobecker <brobecker@adacore.com>
10496
10497 * eval.c (evaluate_subexp_standard): Add handling of user
10498 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
10499
9b3442ee
PM
105002008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
10501
10502 * eval.c (evaluate_subexp_standard): Support
10503 BINOP_INTDIV opcode.
10504
d118ef87
PH
105052008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
10506
10507 * valarith.c (value_binop): Add floating-point BINOP_MIN and
10508 BINOP_MAX cases.
10509 For BINOP_EXP, use length and signedness of left operand only for
10510 result, as for shifts.
10511 For integral operands to BINOP_EXP, use new integer_pow and
10512 uinteger_pow functions so as to get full range of results.
10513 (integer_pow): New function.
10514 (uinteger_pow): New function.
10515
d56d46f5
VP
105162008-01-30 Vladimir Prus <vladimir@codesourcery.com>
10517
10518 Use vector for varobj_list_children interface.
680b56ce
AS
10519 * gdb/varobj.c (varobj_list_children): Return vector
10520 of varobjs.
10521 * gdb/varobj.h (varobj_list_children): Adjust
10522 prototype.
10523 (varobj_p): Declare. Declare vector thereof.
10524 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
10525 for varobj_list_children change.
d56d46f5
VP
10526 * Makefile.in (varobj_h): Update dependencies.
10527
1300a2f4
TJB
105282008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
10529
10530 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
10531 TYPE_CODE_DECFLOAT arguments.
10532 (ppc64_sysv_abi_push_dummy_call) Likewise.
10533 (get_decimal_float_return_value): New function.
10534 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
10535 values by calling get_decimal_float_return_value.
10536 (ppc64_sysv_abi_return_value): Likewise.
10537
95ef687d
NR
105382008-01-30 Nick Roberts <nickrob@snap.net.nz>
10539
10540 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
10541 for preprocessor macro information. Formatting changes.
10542
2d717e4f
DJ
105432008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10544
10545 * remote.c (struct remote_state): Add cached_wait_status.
10546 (remote_exec_file): New variable.
10547 (PACKET_vAttach, PACKET_vRun): New constants.
10548 (extended_remote_restart): Do not query for status.
10549 (struct start_remote_args): New.
10550 (remote_start_remote): Take it as a second argument. Check
10551 whether the target is running. Issue an error for non-running
10552 non-extended targets. Cache the wait status. Set inferior_ptid
10553 here.
10554 (remote_open_1): Prompt to disconnect non-running targets. Make
10555 sure the target is marked running. Do not set inferior_ptid here.
10556 Update call to remote_start_remote. Do not call remote_check_symbols
10557 if the target is not running.
10558 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
10559 argument. Handle a non-running target.
10560 (remote_detach): Use it.
10561 (extended_remote_detach): New.
10562 (remote_disconnect): Fix typo. Use remoute_mourn_1.
10563 (extended_remote_attach_1, extended_remote_attach)
10564 (extended_async_remote_attach): New.
10565 (remote_vcont_resume): Remove unused variable.
10566 (remote_wait, remote_async_wait): Use any cached wait status.
10567 (putpkt_binary, getpkt): Clear any cached wait status.
10568 (extended_remoute_mourn_1): New.
10569 (extended_remote_mourn): Use it.
10570 (extended_async_remote_mourn, extended_remote_run): New.
10571 (extended_remote_create_inferior_1): New.
10572 (extended_remote_create_inferior): Use it.
10573 (extended_remote_async_create_inferior): Likewise.
10574 (remote_xfer_partial): Skip for non-executing targets.
10575 (init_extended_remote_ops): Set to_detach and to_attach.
10576 (init_extended_async_remote_ops): Likewise. Use
10577 extended_async_remote_mourn.
10578 (_initialize_remote): Register vAttach, vRun, and
10579 set remote exec-file.
10580 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
10581
e85a822c
DJ
105822008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
10583
10584 * Makefile.in (symfile.o): Update.
10585 * NEWS: Mention exec tracing support.
10586 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
10587 exec events.
10588 * infcmd.c (kill_if_already_running, detach_command)
10589 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
10590 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
10591 (follow_exec): Do not check may_follow_exec. Do not mourn and push
10592 targets. Apply the sysroot path to the loaded executable. Use
10593 no_shared_libraries.
10594 * linux-nat.c (linux_child_follow_fork): Print fork following
10595 messages if verbose.
10596 (kill_wait_callback): Kill again before waiting a second time.
10597 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
10598 no_shared_libraries.
10599
9db13498
JB
106002008-01-29 Joel Brobecker <brobecker@adacore.com>
10601
10602 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
10603
b4d5ed91
JB
106042008-01-29 Joel Brobecker <brobecker@adacore.com>
10605
10606 * nto-tdep.h: Remove #include "defs.h".
10607 * nto-tdep.c: Add #include "defs.h".
10608 * Makefile.in (nto_tdep_h): Update dependencies.
10609 (nto-tdep.o): Likewise.
10610
107313f7 106112008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
10612
10613 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
10614 and use it.
10615 (proceed, start_remote): Update call to wait_for_inferior.
10616 * inferior.h (wait_for_inferior): Update declaration.
10617 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
10618 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
10619 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
10620 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
10621
3f4178d6
DJ
106222008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
10623
680b56ce 10624 * varobj (adjust_value_for_child_access): Added checking for
3f4178d6
DJ
10625 returned value from gdb_value_ind.
10626 (c_describe_child): Likewise.
10627 (cplus_describe_child): Fixed a typo.
10628
5eeba8d4
JB
106292008-01-29 Jim Blandy <jimb@red-bean.com>
10630
10631 * MAINTAINERS: Update my info.
10632
a5606eee
VP
106332008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10634
10635 Use multiple locations for hardware watchpoints.
10636 This eliminates the need to traverse value chain, doing
10637 various checks, in three different places.
10638
680b56ce
AS
10639 * breakpoint.h (struct bp_location): New fields
10640 lengths and watchpoint_type.
10641 (struct breakpoint): Remove the val_chain field.
10642 * breakpoint.c (is_hardware_watchpoint): New.
10643 (free_valchain): Remove.
10644 (update_watchpoint): New.
10645 (insert_bp_location): For hardware watchpoint, just
10646 directly insert it.
10647 (insert_breakpoints): Call update_watchpoint_locations
10648 on all watchpoints. If we have failed to insert
10649 any location of a hardware watchpoint, remove all inserted
10650 locations.
10651 (remove_breakpoint): For hardware watchpoints, directly
10652 remove location.
10653 (watchpoints_triggered): Iterate over locations.
10654 (bpstat_stop_status): Use only first location of
10655 a resource watchpoint.
10656 (delete_breakpoint): Don't call free_valchain.
10657 (print_one_breakpoint): Don't print all
10658 locations for watchpoints.
10659 (breakpoint_re_set_one): Use update_watchpoint for
10660 watchpoints.
a5606eee 10661
0b3de036
VP
106622008-01-29 Vladimir Prus <vladimir@codesourcery.com>
10663
10664 Don't reset watchpoint block on solib load.
10665
680b56ce
AS
10666 * breakpoint.c (insert_bp_location): For watchpoints,
10667 recompute condition.
10668 (breakpoint_re_set_one): Instead of recomputing value
10669 and condition for watchpoints, just reset value and
10670 let insert_breakpoints/insert_bp_location recompute it.
10671 Don't do anything about disabled watchpoint.
0b3de036 10672
c3940723
PM
106732008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
10674
10675 * valarith.c (value_binop): Handle unsigned integer
10676 division by zero.
10677
83845630
KB
106782008-01-28 Kevin Buettner <kevinb@redhat.com>
10679
10680 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
10681 instruction pattern that appears frequently in position
10682 independent code. Fix bug in code which looks for "fmov" and
10683 backtracks if no "fmov" is found.
10684
9ce5d3bb
DE
106852008-01-28 Doug Evans <dje@google.com>
10686
10687 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
10688 Reformat comments to 80 columns.
10689 Move local var def closer to only use.
9ce5d3bb 10690
c78d192c
DJ
106912008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
10692
10693 * fork-child.c (SHELL_FILE): Remove #ifndef.
10694 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
10695
e11481da
PM
106962008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
10697
10698 * i386-tdep.c (i386_skip_noop): New function.
10699 (i386_analyze_prologue): Call i386_skip_noop function.
10700
244e85c8
MS
107012008-01-24 Michael Snyder <msnyder@specifix.com>
10702
10703 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
10704 * win32-nat.c (win32_xfer_partial): Ditto.
10705 * target.c (default_xfer_partial): Minor whitespace adjustment.
10706
dd6be234
PA
107072008-01-24 Pedro Alves <pedro@codesourcery.com>
10708
10709 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
10710 strip bit 1 even if pc doesn't point to thumb code.
10711
9fa2223d
DJ
107122008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
10713
10714 * remote.c (remote_wait): Handle SIGINT between packets.
10715 (remote_async_wait): Likewise.
10716
93815fbf
VP
107172008-01-23 Vladimir Prus <vladimir@codesourcery.com>
10718 Chris Demetriou <cgd@google.com>
10719
680b56ce
AS
10720 * thread.c (add_thread_silent): Renamed
10721 from add_thread.
10722 (print_thread_events): New variable definition.
10723 (show_print_thread_events): New function.
10724 (_initialize_thread): Add "set print thread-events" and
10725 "show print thread-events" commands.
10726 (add_thread): Announce new thread.
10727 * gdbthread.h (add_thread_silent): Declare.
10728 (print_thread_events): New variable declaration.
10729 * inf-ttrace.c (inf_ttrace_wait): Don't
10730 inform about new thread, as add_thread is always
10731 called too, and will take care of that.
10732 * infrun.c (handle_inferior_event): Likewise.
10733 * procfs.c (procfs_wait): Likewise.
10734 * remote.c (remote_currthread): Likewise.
10735 * sol-thread.c (sol_thread_wait): Likewise.
10736 * win32-nat.c (get_win32_debug_event): Likewise.
10737 * linux-thread-db.c (attach_thread): Likewise.
10738 Remove the verbose parameter.
10739 (check_event): Make detach_thread be verbose
10740 only if print_thread_events is set.
10741 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
10742 about new thread. This is called only from
10743 linux-thread-db.c:attach_thread, which will take care.
10744 Remove the verbose parameter.
10745 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
93815fbf 10746
b4d7c9a6
NR
107472008-01-23 Nick Roberts <nickrob@snap.net.nz>
10748
10749 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
10750
60c46647
VP
107512008-01-22 Vladimir Prus <vladimir@codesourcery.com>
10752
10753 * breakpoint.c (break_command_really): New parameter
10754 ignore_count.
10755 (break_command_1): Pass 0 as
10756 ignore_count to break_command_really.
10757 (gdb_breakpoint): Pass ignore_count to
10758 break_command_really.
10759
e84605cd
KB
107602008-01-21 Kevin Buettner <kevinb@redhat.com>
10761
10762 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
10763 sigcontext struct via pointer.
10764 (struct sigframe comment): Update to show new field `psc'.
10765
9d9cd7ac
VP
107662008-01-21 Vladimir Prus <vladimir@codesourcery.com>
10767
10768 * infrun.c (handle_inferior_event): If
10769 we failed to remove breakpoints, error,
10770 don't try to increment PC by hand.
10771
af5ca30d
NH
107722008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
10773
10774 Add NetBSD/hppa target and host support.
10775
10776 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
10777 (hppabsd_gregset): Move to ...
10778 (hppabsd_regset_from_core_section): Rename
10779 hppaobsd_regset_from_core_section and move to ...
10780 (hppabsd_find_global_pointer): Update comment.
10781 (hppabsd_init_abi): Make global. Do not register
10782 hppabsd_regset_from_core_section.
10783 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
10784 move to ...
10785 (_initialize_hppabsd_tdep): Move to ...
10786 * hppaobsd-tdep.c: ... here. New file.
10787 * hppnbsd-tdep.c: New file.
10788 * hppnbsd-nat.c: New file.
680b56ce 10789 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
af5ca30d 10790 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
680b56ce
AS
10791 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
10792 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
af5ca30d
NH
10793 * configure.host (hppa*-*-netbsd*): New entry.
10794 * configure.tgt (hppa*-*-netbsd*): New entry.
10795 (hppa*-*-openbsd*): Update.
10796 * NEWS (New native configuration): Mention NetBSD/hppa.
10797 (New targets): Mention NetBSD/hppa.
10798
32c9a795
MD
107992008-01-18 Markus Deuling <deuling@de.ibm.com>
10800
10801 * gdbarch.sh (function_list): Add new property bits_big_endian to
10802 gdbarch structure.
10803 * gdbarch.{c,h}: Regenerate.
10804
10805 * value.c (struct value): Replace BITS_BIG_ENDIAN by
10806 gdbarch_bits_big_endian (comment).
10807 (unpack_field_as_long, modify_field): Likewise.
10808 * value.h: Likewise (comment).
10809 * valops.c (value_slice): Likewise.
10810 * valarith.c (value_subscript, value_bit_index): Likewise.
10811 * gdbtypes.h (field): Likewise (comment).
10812 * eval.c (evaluate_subexp_standard): Likewise.
10813 * dwarf2read.c (dwarf2_add_field): Likewise.
10814 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
10815 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
680b56ce 10816
32c9a795
MD
10817 * defs.h (BITS_BIG_ENDIAN): Remove.
10818
1e5e79d0
MD
108192008-01-18 Markus Deuling <deuling@de.ibm.com>
10820
10821 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
10822 function calls.
10823 * m2-exp.y (yylex): Likewise.
10824 * objc-exp.y (yylex): Likewise.
10825
10826 * defs.h (DEPRECATED_STREQN): Remove.
10827
fabda5a7
L
108282008-01-17 H.J. Lu <hjl.tools@gmail.com>
10829
10830 * MAINTAINERS: Update my email address.
10831
92726479
JB
108322008-01-17 Jim Blandy <jimb@codesourcery.com>
10833
10834 * README: Mention gdbserver/README.
10835
ef80d18e
PM
108362008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
10837
10838 * valarith.c (value_binop): Handle BINOP_INTDIV
10839 for unsigned and signed integers.
10840
1de90795
UW
108412008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
10842
10843 * s390-tdep.c (s390_gdbarch_init): Set default long double
10844 type to 128-bit IEEE quad.
10845
c70bd6f3
JB
108462008-01-17 Joel Brobecker <brobecker@adacore.com>
10847
10848 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
10849
ba759613
MK
108502008-01-16 Mark Kettenis <kettenis@gnu.org>
10851
77d49ac6
MK
10852 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
10853
ba759613
MK
10854 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
10855 * value.c: All callers changed.
10856
7ecb6532
MD
108572008-01-16 Markus Deuling <deuling@de.ibm.com>
10858
10859 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
10860 DEPRECATED_STREQ by its expression.
10861 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
10862 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
10863 (scan_xcoff_symtab): Likewise.
10864 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
10865 * f-lang.c (find_common_for_function): Likewise.
10866 * objc-exp.y (parse_number): Likewise.
10867
10868 * defs.h (DEPRECATED_STREQ): Remove.
10869
d15cf01c
MD
108702008-01-16 Markus Deuling <deuling@de.ibm.com>
10871
10872 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
10873 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
10874 get_frame_arch to get at the current_architecture. Update AM33_MODE
10875 call.
10876 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
10877 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
10878 architecture.
10879 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
10880
f8028488
MD
108812008-01-16 Markus Deuling <deuling@de.ibm.com>
10882
680b56ce 10883 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
f8028488
MD
10884 parameter.
10885 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
10886
10887 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
10888 current_gdbarch by gdbarch. Update caller.
10889
10890 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
10891 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
10892 the current architecture. Update calls of
10893 amd64_native_gregset_supplies_p.
10894 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
10895 (amd64bsd_store_inferior_registers): Likewise.
10896
e101270f
MD
108972008-01-16 Markus Deuling <deuling@de.ibm.com>
10898
10899 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
10900 Replace current_gdbarch by gdbarch. Update caller.
10901
063e58ba
MD
109022008-01-16 Markus Deuling <deuling@de.ibm.com>
10903
10904 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
10905 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
10906 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
10907 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
10908 (stabsect_build_psymtabs): Fix indentation.
10909
662fb31b
MS
109102008-01-15 Michael Snyder <msnyder@specifix.com>
10911
10912 * corelow.c (core_xfer_partial): Comment, cut/paste error.
10913
c1766e7d
PM
109142008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
10915
10916 * win32-nat.c (win32_create_inferior): Restore code calling
10917 CloseHandle on ProcessInformation structure.
10918
5ed10e6e
NH
109192008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
10920
10921 * configure.ac: Check for void * as 3 argument of ptrace.
10922 * configure: regenerate.
10923
be8626e0
MD
109242008-01-11 Markus Deuling <deuling@de.ibm.com>
10925
10926 * alpha-tdep.c (alpha_heuristic_proc_start)
10927 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
10928 current_gdbarch by gdbarch.
10929
10930 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
680b56ce 10931 current architecture by frame_info. Update alpha_heuristic_proc_start
be8626e0
MD
10932 call.
10933
10934 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
10935 get_frame_arch to get at the current architecture by frame_info. Update
10936 alpha_sigtramp_register_address call.
10937
10938 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
10939 current_gdbarch by gdbarch. Update caller.
10940 (convert_to_extended, convert_from_extended): Add endianess parameter
10941 for comparison. Update caller.
10942 (arm_extract_return_value, arm_store_return_value): Use
10943 get_regcache_arch to get at the current architecture.
10944
10945 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
10946 current_gdbarch by gdbarch. Update caller.
10947 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
10948 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
10949
10950 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
680b56ce 10951 gdbarch as parameter. Update caller.
be8626e0
MD
10952 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
10953 current_gdbarch by gdbarch. Update caller.
10954
680b56ce 10955 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
be8626e0
MD
10956 update caller. Replace current_gdbarch by gdbarch.
10957
10958 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
10959 the current architecture. Replace current_gdbarch by gdbarch.
10960 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
10961 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
10962 expression. Add gdbarch as parameter and replace current_gdbarch with
10963 it. Update caller.
10964 (M6811_TDEP): Remove.
10965 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
10966 architecture.
680b56ce 10967 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
be8626e0
MD
10968 current_gdbarch by gdbarch. Update caller.
10969
10970 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
10971 update caller.
10972 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
10973 by gdbarch.
10974
10975 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
10976 caller. Relace current_gdbarch by gdbarch.
10977 (altivec_register_p, spe_register_p): Likewise.
10978 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
10979 parameter.
10980 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
10981 altivec_register_p and spe_register_p.
10982
680b56ce 10983 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
be8626e0
MD
10984 caller. Replace current_gdbarch by gdbarch.
10985 (score_analyze_prologue): use get_frame_arch to get at the current
680b56ce 10986 architecture.
be8626e0
MD
10987
10988 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
10989 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
10990 current_gdbarch by gdbarch. Update caller.
10991 (sparc_frame_cache): Use get_frame_arch to get at the current
10992 architecture.
10993 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
10994 sparc_analyze_prologue.
10995
10996 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
10997 parameter.
10998
ed49a04f
MD
109992008-01-11 Markus Deuling <deuling@de.ibm.com>
11000
11001 * exec.c: #include "arch-utils.h"
11002 (print_section_info): Use gdbarch_from_bfd to get at the
11003 current architecture. Replace current_gdbarch. Fix indention. Replace
11004 deprecated_print_address_numeric by paddress.
11005 * Makefile.in (exec.o) Add dependency to arch-utils.h.
11006
680b56ce 11007 * valprint.c (val_print_string): Replace
ed49a04f
MD
11008 deprecated_print_address_numeric.
11009 * tracepoint.c (trace_mention, scope_info): Likewise.
11010 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
11011 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
11012 (maintenance_check_symtabs): Likewise.
11013 * symfile.c (list_overlays_command): Likewise.
11014 * stack.c (frame_info, print_block_frame_labels): Likewise.
11015 * printcmd.c (print_address, print_address_demangle)
11016 (address_info): Likewise.
11017 * corefile.c (memory_error): Likewise.
11018 * infcmd.c (jump_command): Likewise.
11019 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
11020 (mention, delete_breakpoint): Likewise.
11021 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
11022 * dwarf2read.c (dump_die): Likewise.
11023 * ada-valprint.c (ada_val_print_1): Likewise.
11024 * f-valprint.c (f_val_print): Likewise.
680b56ce 11025 * linux-fork.c (info_forks_command): Likewise.
ed49a04f
MD
11026 * m32r-com.c (m32r_load_section, m32r_load)
11027 (m32r_upload_command): Likewise.
11028
11029 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
11030
6093d2eb
MD
110312008-01-11 Markus Deuling <deuling@de.ibm.com>
11032
11033 * gdbarch.sh (skip_prologue): Add gdbarch
11034 as parameter.
11035 * gdbarch.{c,h}: Regenerate.
11036
11037 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
11038 * amd64-tdep.c (amd64_skip_prologue): Likewise.
11039 * avr-tdep.c (avr_skip_prologue): Likewise.
11040 * cris-tdep.c (cris_skip_prologue): Likewise.
11041 * frv-tdep.c (frv_skip_prologue): Likewise.
11042 * h8300-tdep.c (h8300_skip_prologue): Likewise.
11043 * hppa-tdep.c (hppa_skip_prologue): Likewise.
11044 * i386-tdep.c (i386_skip_prologue): Likewise.
11045 * ia64-tdep.c (ia64_skip_prologue): Likewise.
11046 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
11047 * m32r-tdep.c (m32r_skip_prologue): Likewise.
11048 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
11049 * m68k-tdep.c (m68k_skip_prologue): Likewise.
11050 * m88k-tdep.c (m88k_skip_prologue): Likewise.
11051 * mep-tdep.c (mep_skip_prologue): Likewise.
11052 * mips-tdep.c (mips_skip_prologue): Likewise.
11053 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
11054 * mt-tdep.c (mt_skip_prologue): Likewise.
11055 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
11056 * score-tdep.c (score_skip_prologue): Likewise.
11057 * sh64-tdep.c (sh64_skip_prologue): Likewise.
11058 * sh-tdep.c (sh_skip_prologue): Likewise.
11059 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
11060 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
11061 * spu-tdep.c (spu_skip_prologue): Likewise.
11062 * v850-tdep.c (v850_skip_prologue): Likewise.
11063 * vax-tdep.c (vax_skip_prologue): Likewise.
11064 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
11065 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
11066
11067 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
11068 current_gdbarch by gdbarch.
11069 * m32c-tdep.c (m32c_skip_prologue): Likewise.
11070 * s390-tdep.c (s390_skip_prologue): Likewise.
11071
72f5cf0e
DE
110722008-01-10 Doug Evans <dje@google.com>
11073
11074 * defs.h (struct continuation_arg): Fix typo in comment.
11075 * target.c (target_translate_tls_address): Fix comment spelling error.
11076
689e4e2d
TJB
110772008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
11078
11079 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
11080 (DOUBLEST_SCAN_FORMAT): Likewise.
11081 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
11082 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
11083 * c-exp.y (parse_number): Likewise.
11084 * jv-exp.y (parse_number): Likewise.
11085 * objc-exp.y (parse_number): Likewise.
11086 * p-exp.y (parse_number): Likewise.
11087
ab0d6e0d
JB
110882008-01-09 Joel Brobecker <brobecker@adacore.com>
11089
11090 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
11091 (check_typedef): Likewise.
11092
0aea4bf3
LM
110932008-01-09 Luis Machado <luisgpm@br.ibm.com>
11094
11095 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
11096 seen_double_big_d, treat the new H, D, and DD modifiers as length
11097 modifiers.
11098
137033e9
JB
110992008-01-08 Joel Brobecker <brobecker@adacore.com>
11100
11101 * dwarf2read.c (read_enumeration_type): Add comment.
11102
dda297ec
TJB
111032008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
11104
11105 * config.in: Regenerate.
11106
a93c0eb6
JB
111072008-01-08 Joel Brobecker <brobecker@adacore.com>
11108
11109 * ada-lang.c (ada_convert_actual): Renames convert_actual.
11110 Make non-static.
11111 (ada_convert_actuals): Delete.
11112 * ada-lang.h (ada_convert_actual): Add declaration.
11113 (ada_convert_actuals): Remove declaration.
11114 * infcall.c: #include "ada-lang.h".
11115 (value_arg_coerce): Add new parameter sp. Update function
11116 documetnation. Add handling of Ada function call parameters.
11117 * Makefile.in (infcall.o): Update dependencies.
11118
a84a8a0d
JB
111192008-01-08 Paul Hilfinger <hilfinger@adacore.com>
11120
11121 * ada-lang.c (ensure_lval): Fix value lval kind.
11122 (convert_actual): Add handling for arguments passed by reference.
11123
d7f98cce
DE
111242008-01-08 Doug Evans <dje@google.com>
11125
11126 * dbxread.c (read_dbx_symtab): Fix indentation.
11127
4ef30785
TJB
111282008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
11129
11130 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
11131 (valarith.o): Depend on dfp.h.
11132 (valops.o): Likewise.
11133 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
11134 (set_decnumber_context): New function.
11135 (decimal_check_errors): Likewise.
11136 (decimal_from_number): Likewise.
11137 (decimal_to_number): Likewise.
11138 (decimal_from_string): Use set_decnumber_context and
11139 decimal_check_errors.
11140 (decimal_from_integral): New function.
11141 (decimal_from_floating): Likewise.
11142 (decimal_to_double): Likewise.
11143 (promote_decimal): Likewise.
11144 (decimal_binop): Likewise.
11145 (decimal_is_zero): Likewise.
11146 (decimal_compare): Likewise.
11147 (decimal_convert): Likewise.
11148 * dfp.h (decimal_from_integral): New prototype.
11149 (decimal_from_floating): Likewise.
11150 (decimal_to_double): Likewise.
11151 (decimal_binop): Likewise.
11152 (decimal_is_zero): Likewise.
11153 (decimal_compare): Likewise.
11154 (decimal_convert): Likewise.
11155 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
11156 call to value_from_decfloat.
11157 * valarith.c: Include dfp.h.
11158 (value_args_as_decimal): New function.
11159 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
11160 (value_logical_not): Likewise.
11161 (value_equal): Likewise.
11162 (value_less): Likewise.
11163 (value_pos): Likewise.
11164 (value_neg): Formatting fix.
11165 * valops.c: Include dfp.h.
11166 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
11167 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
11168 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
11169 (value_from_decfloat): Remove expect_type argument.
11170 * value.h (value_from_decfloat): Update prototype.
11171
a7c02bc8
VP
111722008-01-07 Vladimir Prus <vladimir@codesourcery.com>
11173
11174 Ignore change in name of dynamic linker during
11175 execution on Solaris. This also unbreaks pending breakpoints.
11176
11177 * solist.h (struct target_so_ops): New field same.
680b56ce
AS
11178 * solib-svr4.c (svr4_same): New.
11179 (_initialize_svr4_solib): Register svr4_same.
11180 * solib.c (update_solib_list): Use ops->same, if available.
a7c02bc8 11181
610dd7f9
CF
111822008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
11183
11184 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
11185 when using MS-DOS paths.
11186
7a404eba
PA
111872008-01-05 Pedro Alves <pedro@codesourcery.com>
11188
11189 * NEWS: Mention --pid and --core command line behaviour changes.
11190
a4d9b460
PA
111912008-01-05 Pedro Alves <pedro@codesourcery.com>
11192
11193 * main.c (captured_main): Remove 'count' varible and the
11194 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
11195 --pid options were issued simultaneously. If an explicit pid
11196 option was passed, don't fallback to core file. Detect extra
11197 arguments better in the presence of explicit pid or core
11198 arguments.
11199
0c281816
JB
112002008-01-05 Joel Brobecker <brobecker@adacore.com>
11201
11202 * ada-lang.c (ada_which_variant_applies): Correctly compute
11203 the value of the discriminant when the variant record is packed.
11204
babe1480
JB
112052008-01-04 Joel Brobecker <brobecker@adacore.com>
11206
11207 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
11208 that are used to differentiate homonyms.
11209
727e3d2e
JB
112102008-01-04 Jerome Guitton <guitton@adacore.com>
11211
11212 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
11213 when the type is an anonymous pointer type.
11214 (ada_check_typedef): Avoid a seg fault when the type is null.
11215 * ada-typeprint.c (print_array_type): Add support for pointer
11216 to packed arrays.
11217
bb28a9dc
JB
112182008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
11219
680b56ce 11220 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
bb28a9dc 11221
6799def4
JB
112222008-01-04 Joel Brobecker <brobecker@adacore.com>
11223
11224 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
11225 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
11226
d3353bbd
JB
112272008-01-04 Joel Brobecker <brobecker@adacore.com>
11228
11229 * ada-exp.y (chop_separator): New function.
11230 (write_selectors): Rewrite to re-use chop_separator.
11231 (ada_nget_field_index, get_symbol_field_type): New functions.
11232 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
11233 expressions.
11234
82cf6c60
TJB
112352008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
11236
11237 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
11238 of SYMBOL_VALUE when working with function symbols.
11239
b3dbf008
JB
112402008-01-03 Joel Brobecker <brobecker@adacore.com>
11241
11242 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
11243 expressions. These expressions do not need to be rewriten.
11244
02eb380e
JB
112452008-01-03 Joel Brobecker <brobecker@adacore.com>
11246
11247 * dwarf2read.c (read_enumeration_type): Flag type as stub if
11248 the given die is a declaration.
11249
abb68b3e
JB
112502008-01-03 Joel Brobecker <brobecker@adacore.com>
11251
11252 * ada-lang.c (ada_array_bound_from_type): Make non-static.
11253 Handle properly the case when the index type is an enumerated type.
11254 Do not return the subtype of the bounds type, just return the
11255 bounds type directly - this is not needed and is more consistent
11256 with what we do for arrays when no XA parallel type exists.
11257
f192137b
JB
112582008-01-03 Joel Brobecker <brobecker@adacore.com>
11259
11260 * ada-lang.c (static_unwrap_type): Add forward declaration.
11261 (template_to_static_fixed_type): Fields of dynamic types sometimes
11262 also need to be unwrapped. Take this into account.
11263 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
11264 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
11265 * ada-typeprint.c (ada_print_type): Get the typename from
680b56ce 11266 the original type, not the base type.
f192137b 11267
1ed6ede0
JB
112682008-01-03 Jerome Guitton <guitton@adacore.com>
11269
11270 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
680b56ce 11271 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
1ed6ede0
JB
11272 Update calls to ada_to_fixed_type.
11273 (ada_template_to_fixed_record_type_1): Ditto, but without looking
11274 for the tag.
11275 (ada_to_fixed_type): Add check_tag parameter; do not look for
11276 tag if null. When looking for a tag, use a fixed record type.
11277 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
11278 * ada-valprint.c (printable_val_type, ada_value_print): Update
11279 calls to ada_to_fixed_type.
11280
542a88d0
LM
112812008-01-03 Luis Machado <luisgpm@br.ibm.com>
11282
680b56ce 11283 * doublest.c (convert_floatformat_to_doublest): Call
542a88d0
LM
11284 floatformat_to_doublest instead of floatformat_to_double and use
11285 DOUBLEST variables.
11286 (convert_doublest_to_floatformat): Call floatformat_from_doublest
11287 instead of floatformat_from_double and use DOUBLEST variables.
11288
dc2bbab2
NH
112892008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
11290
11291 * MAINTAINERS (Write After Approval): Add self.
11292
8b60591b
JB
112932008-01-03 Joel Brobecker <brobecker@adacore.com>
11294
11295 * symfile.c (set_initial_language): Make non-static.
11296 * symfile.h (set_initial_language): Add declaration.
11297 * language.c: #include "symfile.h".
11298 (set_language): Call set_initial_language if the frame language
11299 could not be determined.
11300
ceef53c1
JB
113012008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
11302
11303 * eval.c (evaluate_subexp_for_address): Provide frame address to
11304 locate_var_value only if it will be needed.
11305
ef29ce1a
JK
113062008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11307
11308 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
11309
0a07e705
JB
113102008-01-02 Joel Brobecker <brobecker@adacore.com>
11311
11312 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
11313 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
11314 This is needed to make sure that any other treatment applied
11315 to the resulting value does not fail for spurious reason,
11316 such as trying to take the address of this value.
11317
f58b38bf
JB
113182008-01-02 Joel Brobecker <brobecker@adacore.com>
11319
11320 * ada-lang.c (ada_value_equal): Dereference reference types when
11321 comparing arrays.
680b56ce 11322
9b254dd1
DJ
113232008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
11324
11325 Updated copyright notices for most files.
11326
33605d39
CF
113272008-01-01 Christopher Faylor <me+gdb@cgf.cx>
11328
11329 * win32-nat.c (psapi_module_handle): Remove static.
11330 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
11331 return first module found if base_address is zero. Don't initialize
11332 psapi function pointers here. Convert to cygwin paths when
11333 appropriate.
11334 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
11335 executable name. Use get_module_name when that fails or when
11336 !__CYGWIN__.
11337 (_initialize_psapi): New function. Initialize psapi stuff before it is
11338 needed or issue a warning if it is not found. Move psapi_module_handle
11339 here.
11340
29480c32
JB
113412008-01-01 Joel Brobecker <brobecker@adacore.com>
11342
11343 * ada-lang.c (ada_remove_trailing_digits): New function.
11344 (ada_remove_po_subprogram_suffix): New function.
11345 (ada_decode): Improve. Move the description of the algorithm
11346 directly inside the code, instead of in the function global
11347 description.
11348
969a1360
JB
113492008-01-01 Joel Brobecker <brobecker@adacore.com>
11350
11351 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
11352 and always print the dereferenced value.
11353
b7789565
JB
113542008-01-01 Joel Brobecker <brobecker@adacore.com>
11355
11356 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
11357 of the case where the first argument is a reference.
11358 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
11359
73fb9985
JB
113602008-01-01 Joel Brobecker <brobecker@adacore.com>
11361
11362 Implement support for Ada interface types.
11363
11364 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
11365 (ada_is_ignored_field): Ignore fields that are a dispatch table
11366 of a tagged type.
11367
636265b6
JB
113682008-01-01 Joel Brobecker <brobecker@adacore.com>
11369
11370 * top.c (print_gdb_version): Update copyright year.
11371
9d200a2e 113722008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 11373
9d200a2e
JB
11374 * ChangeLog-2007: New ChangeLog rotation.
11375 * ChangeLog: Reset for 2008.
11376 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
11377 ChangeLog-2007.
b7589f7d 11378
9d200a2e 11379For older changes see ChangeLog-2007.
c906108c
SS
11380\f
11381Local Variables:
11382mode: change-log
11383left-margin: 8
11384fill-column: 74
11385version-control: never
57da7796 11386coding: utf-8
c906108c 11387End:
This page took 1.423085 seconds and 4 git commands to generate.