* minsyms.c: Include "target.h".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
42848c96
UW
12008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
2
3 * minsyms.c: Include "target.h".
4 (find_solib_trampoline_target): Handle minimal symbols pointing
5 to function descriptors as well.
6 * Makefile.in (minsyms.o): Update dependencies.
7
8 * ppc-linux-tdep.c (ppc64_standard_linkage): Rename to ...
9 (ppc64_standard_linkage1): ... this. Fix optional instructions.
10 (PPC64_STANDARD_LINKAGE_LEN): Rename to ...
11 (PPC64_STANDARD_LINKAGE1_LEN): ... this.
12 (ppc64_standard_linkage2, ppc64_standard_linkage3): New.
13 (PPC64_STANDARD_LINKAGE2_LEN, PPC64_STANDARD_LINKAGE3_LEN): New.
14 (ppc64_standard_linkage_target): Rename to ...
15 (ppc64_standard_linkage1_target): ... this.
16 (ppc64_standard_linkage2_target, ppc64_standard_linkage3_target): New.
17 (ppc64_skip_trampoline_code): Support three variants of standard
18 linkage stubs. Call find_solib_trampoline_target to handle
19 glink stubs.
20
74d1f063
UW
212008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
22
23 * ppc-linux-tdep.c (ppc_linux_init_abi): Do not install
24 ppc64_sysv_abi_adjust_breakpoint_address.
25 * ppc-sysv-tdep.c (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
26 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Remove.
27
8526f328
UW
282008-05-16 Ulrich Weigand <uweigand@de.ibm.com>
29
30 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Remove.
31 (ppc_linux_init_abi): Install find_solib_trampoline_target instead
32 of ppc_linux_skip_trampoline_code.
33
ba2b1c56
DJ
342008-05-15 Daniel Jacobowitz <dan@codesourcery.com>
35
36 * gdbarch.sh: Delete dwarf_reg_to_regnum.
37 * gdbarch.c, gdbarch.h: Regenerated.
38 * amd64-tdep.c, arm-tdep.c, h8300-tdep.c, hppa-linux-tdep.c,
39 hppa-tdep.c, i386-tdep.c, m32c-tdep.c, m68k-tdep.c, mips-tdep.c,
40 s390-tdep.c, xtensa-tdep.c: Do not set dwarf_reg_to_regnum.
41
4fdebdd0
PA
422008-05-15 Pedro Alves <pedro@codesourcery.com>
43
44 * linux-nat.c (trap_ptid): Delete.
45 (linux_nat_detach, linux_nat_wait, linux_nat_mourn_inferior):
46 Adjust.
47 * linux-thread-db.c (thread_db_wait): Adjust.
48
bc882aa9
JB
492008-05-15 Joel Brobecker <brobecker@adacore.com>
50
51 * linespec.c (decode_line_1): Fix a couple of comments.
52
83b94be5
AM
532008-05-15 Alan Modra <amodra@bigpond.net.au>
54
55 * dbxread.c: Formatting.
56 (INTERNALIZE_SYMBOL): Init n_other.
57 (set_namestring): Take pointer to nlist arg rather than struct
58 copy. Update all callers.
59
87669130
AS
602008-05-15 Andreas Schwab <schwab@suse.de>
61
62 * Makefile.in (dwarf2loc.o): Remove $(addrmap_h).
63 (dwarf2read.o): Add $(addrmap_h).
64
00d5f93a
UW
652008-05-14 Ulrich Weigand <uweigand@de.ibm.com>
66
67 * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Rename ...
68 (ppc64_linux_convert_from_func_ptr_addr): ... to this. No longer try
69 to handle ppc32 PLT entries.
70 (ppc_linux_init_abi): Install ppc64_linux_convert_from_func_ptr_addr
71 only on ppc64.
72
2eaf8d2a
DJ
732008-05-14 Daniel Jacobowitz <dan@codesourcery.com>
74
75 * elfread.c (elf_symtab_read): Create trampolines for @plt symbols.
76 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Renamed from
77 lookup_minimal_symbol_by_pc_section. Prefer trampolines if requested.
78 (lookup_minimal_symbol_by_pc_section): Use
79 lookup_minimal_symbol_by_pc_section_1.
80 (lookup_solib_trampoline_symbol_by_pc): Likewise.
81
20c62566
JB
822008-05-13 Joel Brobecker <brobecker@adacore.com>
83
84 * findcmd.c: Add #include "gdb_stdint.h".
85 * Makefile.in (findcmd.o): Update dependencies.
86
87a7da84
DM
872008-05-11 David S. Miller <davem@davemloft.net>
88
de0c3d9d
DM
89 * sparc-linux-tdep.c (sparc32_linux_init_abi): Remove
90 long double size override, Linux does use 128-bit now.
91
e8467b5a
DM
92 * sparc-linux-tdep.c (PSR_SYSCALL): Define.
93 (sparc_linux_write_pc): New function.
94 (sparc32_linux_init_abi): Register it.
95 * sparc64-linux-tdep.c (TSTATE_SYSCALL): Define.
96 (sparc64_linux_write_pc): New function.
97 (sparc64_linux_init_abi): Register it.
98
87a7da84
DM
99 * sparc-linux-tdep.c, sparc64-linux-tdep.c: Use
100 dwarf2_append_unwinders(), not dwarf2_frame_sniffer.
101
8a4c2d24
UW
1022008-05-11 Ulrich Weigand <uweigand@de.ibm.com>
103
104 * rs6000-tdep.c (rs6000_gdbarch_init): Set up info.target_desc
105 and info.tdep_info before calling gdbarch_init_osabi.
106
003f3813
JB
1072008-05-09 Joel Brobecker <brobecker@adacore.com>
108
109 * ada-lang.c (ada_evaluate_subexp) [BINOP_ASSIGN]: Do not force
110 the type of the right hand side of the assignment to the type
111 of the left hand side if the left hand side is a convenience
112 variable.
113
7ae0e2a2
UW
1142008-05-09 Ulrich Weigand <uweigand@de.ibm.com>
115
116 * NEWS: Mention gdbserver bi-arch capability.
117
08388c79
DE
1182008-05-09 Doug Evans <dje@google.com>
119
120 New "find" command.
121 * NEWS: Document find command and qSearch:memory packet.
122 * Makefile.in (SFILES): Add findcmd.c.
123 (COMMON_OBJS): Add findcmd.o.
124 (findcmd.o): New rule.
125 * findcmd.c: New file.
126 * target.h (target_ops): New member to_search_memory.
127 (simple_search_memory): Declare.
128 (target_search_memory): Declare.
129 * target.c (simple_search_memory): New fn.
130 (target_search_memory): New fn.
131 * remote.c (PACKET_qSearch_memory): New packet kind.
132 (remote_search_memory): New fn.
133 (init_remote_ops): Init to_search_memory.
134 (init_extended_remote_ops): Ditto.
135 (_initialize_remote): Add qSearch:memory packet config command.
136
11c68c47
EZ
1372008-05-09 Eli Zaretskii <eliz@gnu.org>
138
139 * thread.c (_initialize_thread): Don't use commas and periods in
140 first line of doc string of "set/show print thread-events".
141
6834c9bb
JB
1422008-05-08 Joel Brobecker <brobecker@adacore.com>
143
144 * alpha-mdebug-tdep.c, alpha-osf1-tdep.c, alpha-tdep.c:
145 Update for unwinder changes.
146
86c31399
JB
1472008-05-08 Joel Brobecker <brobecker@adacore.com>
148
149 * frame.c (get_frame_base_address, get_frame_locals_address)
150 (get_frame_args_address): Pass the correct frame when calling
151 frame_base_find_by_frame.
152
96ef3384
UW
1532008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
154
155 * remote.c (extended_remote_attach_1): Call target_find_description.
156
45280a52
DJ
1572008-05-08 Daniel Jacobowitz <dan@codesourcery.com>
158
159 * remote.c (extended_remote_create_inferior_1): Clean up
160 before marking the target running.
161
227e86ad
JB
1622008-05-08 Joel Brobecker <brobecker@adacore.com>
163
164 * hppa-tdep.h, hppa-tdep.c, hppa-hpux-tdep.c: Update for unwinder
165 changes.
166
236369e7
JB
1672008-05-07 Joel Brobecker <brobecker@adacore.com>
168
169 * sparc-tdep.c, sparc-tdep.h, sparc-sol2-tdep.c, sparc64-tdep.c,
170 sparc64-sol2-tdep.c: Update for unwinder changes.
171
de237128
DJ
1722008-05-07 Daniel Jacobowitz <dan@codesourcery.com>
173
174 * cp-support.c (mangled_name_to_comp): Initialize storage.
175 (unqualified_name_from_comp): Likewise.
176
4fff2411
JZ
1772008-05-07 Jie Zhang <jie.zhang@analog.com>
178
179 * remote.c (remote_insert_breakpoint): Call get_remote_state
180 after gdbarch_breakpoint_from_pc is called.
181 (remote_insert_hw_breakpoint): Likewise.
182
d8ca156b
JB
1832008-05-06 Joel Brobecker <brobecker@adacore.com>
184
185 * valprint.c (val_print): Add new language parameter and use it
186 instead of using the current_language. Update calls to val_print
187 throughout.
188 (common_val_print): Add new langauge parameter and pass it to
189 val_print.
190 * value.h (struct language_defn): Add opaque declaration.
191 (val_print, common_val_print): Update declarations.
192 * stack.c (print_frame_args): Update call to common_val_print
193 using the appropriate language.
194 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
195 * c-valprint, f-valprint.c, m2-valprint.c, mt-tdep.c, infcmd.c,
196 mi/mi-main.c, jv-valprint.c, ada-valprint.c, varobj.c, p-valprint.c,
197 scm-valprint.c, cp-valprint.c, sh64-tdep.c, printcmd.c:
198 #include "language.h" if necessary.
199 Update calls to val_print and common_val_print.
200 * Makefile.in (mt-tdep.o, sh64-tdep.o, mi-cmds.o, mi-main.o):
201 Update dependencies.
202
b1e6fd19
JB
2032008-05-06 Joel Brobecker <brobecker@adacore.com>
204
205 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Treat addresses
206 pointing inside a non-executable section as function descriptors.
207
02b19d84
PA
2082008-05-06 Pedro Alves <pedro@codesourcery.com>
209
210 * inf-loop.c (inferior_event_handler): Run all continuations and
211 print any language change before running the breakpoint commands.
212
15c1e57f
JB
2132008-05-06 Joel Brobecker <brobecker@adacore.com>
214
215 * frame-unwind.c (frame_unwind_got_bytes): New function.
216 * frame-unwind.h (frame_unwind_got_bytes): Add declaration.
217 * libunwind-frame.h, libunwind-frame.c, ia64-tdep.c: Update
218 for unwinder changes.
219
d14508fe
DE
2202008-05-05 Doug Evans <dje@google.com>
221
222 * NEWS: Mention new /m modifier for disassemble command.
223 * cli/cli-cmds.c (print_disassembly): New function.
224 (disassemble_current_function): New function
225 (disassemble_command): Recognize /m modifier, print mixed
226 source+assembly.
227 (init_cli_cmds): Update disassemble help text.
228
5142f611
MG
2292008-05-05 Maxim Grigoriev <maxim2405@gmail.com>
230
231 * xtensa-tdep.c: Update for unwinder changes.
232
f36bf22c
AS
2332008-05-05 Andreas Schwab <schwab@suse.de>
234
235 Update m68k port for unwinder changes.
236 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
237 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
238 (m68k_frame_unwind): Use default_frame_sniffer.
239 (m68k_frame_sniffer): Remove.
240 (m68k_frame_base_address): Expect this_frame.
241 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
242 this_frame.
243 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
244 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
245 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
246 parameter instead of pc value.
247 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
248 Expect this_frame.
249 (m68k_linux_sigtramp_frame_this_id)
250 (m68k_linux_sigtramp_frame_prev_register)
251 (m68k_linux_sigtramp_frame_sniffer): Update signature.
252 (m68k_linux_sigtramp_frame_unwind): Use
253 m68k_linux_sigtramp_frame_sniffer.
254 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
255
256 * m68klinux-nat.c (store_register): Fix typo.
257
b3dc826b
PA
2582008-05-05 Pedro Alves <pedro@codesourcery.com>
259
260 * infcmd.c (step_1): Put thread id on the stack to avoid possible
261 NULL dereferencing.
262
6528a9ea
LM
2632008-05-05 Luis Machado <luisgpm@br.ibm.com>
264
265 * symfile.c (reread_symbols): Update objfile's entry point.
266
5eeb2539
AR
2672008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
268 Joel Brobecker <brobecker@adacore.com>
1f906a60 269
5eeb2539
AR
270 * ada-lang.c: Update throughout to use symbol_matches_domain
271 instead of matching the symbol domain explictly.
272 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 273 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 274 class as typedefs. See lookup_partial_symbol function.
f36bf22c 275 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
276 symbol for the typedef. See lookup_block_symbol.
277 * symtab.c (symbol_matches_domain): New function, takes care
278 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
279 (lookup_partial_symbol): Use symbol_matches_domain to see if the
280 found psym domain matches the given domain.
281 (lookup_block_symbol): Likewise.
282
e2b7ddea
VP
2832008-05-05 Vladimir Prus <vladimir@codesourcery.com>
284
285 * top.c (command_line_handler_continuation): Remove.
286 (execute_command): Do not install the above.
287
fcfb8b02
VP
2882008-05-05 Vladimir Prus <vladimir@codesourcery.com>
289
290 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
291 and catch all exceptions from it.
292 * top.c (command_line_handler_continuation): Don't
293 call bpstat_do_action here.
294
f792889a
DJ
2952008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
296
297 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
298 (struct die_info): Remove type.
299 (read_type_die, read_typedef, read_base_type, read_subrange_type)
300 (read_structure_type, read_enumeration_type, read_array_type)
301 (read_tag_pointer_type, read_tag_ptr_to_member_type)
302 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
303 (read_tag_string_type, read_subroutine_type, read_set_type)
304 (read_unspecified_type): Delete prototypes. Remove check for
305 already-loaded type. Return the new type.
306 (set_die_type): Return the new type.
307 (reset_die_and_siblings_types): Delete.
308 (load_comp_unit, load_full_comp_unit): Set type_hash.
309 (process_queue): Remove call to reset_die_and_siblings_types.
310 (process_die): Do not read most types here. Use read_type_die
311 for others.
312 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
313 (quirk_gcc_member_function_pointer): Return the new type.
314 (process_structure_scope, process_enumeration_scope): Use
315 get_die_type and read the DIE's type.
316 (read_full_die): Do not initialize die->type.
317 (tag_type_to_type): Use read_type_die.
318 (read_type_die): Check for already defined types. Return the
319 type.
320 (determine_prefix): Use get_die_type.
321 (set_die_type): Return the type.
322 (get_die_type): Take a CU argument. Check for no type_hash.
323
e7030f15
DJ
3242008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
325
326 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
327 locals.
328
611c83ae
PA
3292008-05-04 Pedro Alves <pedro@codesourcery.com>
330
331 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
332 and bp_longjmp_resume breakpoints.
333 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
334 meaningful.
335 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
336 breakpoints. Create bp_longjmp breakpoints as momentary
337 breakpoints.
338 (enable_longjmp_breakpoint): Delete.
339 (set_longjmp_breakpoint): New.
340 (disable_longjmp_breakpoint): Delete.
341 (delete_longjmp_breakpoint): New.
342 (set_longjmp_resume_breakpoint): Delete.
343 (set_momentary_breakpoint_at_pc): New.
344 (breakpoint_re_set_one): Don't delete bp_longjmp and
345 bp_longjmp_resume breakpoints.
346 (breakpoint_re_set): Don't create longjmp and longjmp-resume
347 breakpoints.
348
349 * infrun.c (step_resume_breakpoint): Add comment.
350 (struct execution_control_state): Delete handling_longjmp member.
351 (init_execution_control_state). Don't clear handling_longjmp.
352 (context_switch): Don't context switch handling_longjmp.
353 (handle_inferior_event): If handling a bp_longjmp breakpoint,
354 create a bp_longjmp_resume breakpoint, and set it as current
355 step_resume_breakpoint, then step over the longjmp breakpoint. If
356 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
357 breakpoint, delete the longjmp-resume breakpoint, and stop
358 stepping.
359 (currently_stepping): Remove handling_longjmp from expression.
360 (insert_step_resume_breakpoint_at_sal): Update comment.
361 (insert_longjmp_resume_breakpoint): New.
362
363 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
364 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
365 declarations.
366 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
367 (set_longjmp_resume_breakpoint): Delete declaration.
368
369 * gdbthread.h (save_infrun_state): Remove handling_longjmp
370 parameter.
371 (load_infrun_state): Delete *handling_longjmp parameter.
372 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
373 Update body.
374 (load_infrun_state): Delete *handling_longjmp parameter. Update
375 body.
376
377 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
378 (delete_longjmp_breakpoint_cleanup): New.
379 (step_1): Call set_longjmp_breakpoint instead of
380 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
381 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
382 (step_1_continuation): Pass thread id in the continuation args to
383 step_once.
384 (step_once): Add thread parameter. Pass thread id the the
385 continuation.
386
85cbf3d3
JK
3872008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
388
389 Set CU BASE_ADDRESS already from partial DIEs.
390 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
391 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
392 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
393 from these variables if it was still unset.
394
ff013f42
JK
395 * Makefile.in: Update dependencies.
396 * dwarf2read.c: Include "addrmap.h"
397 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
398 (dwarf2_ranges_read): New prototype.
399 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
400 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
401 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
402 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
403 comment for it. Add the found ranges to RANGES_PST. New variable
404 BASEADDR, initialize it the common way.
405 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
406 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
407 HAS_RANGES_OFFSET for the later processing.
408 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
409 * symtab.c: Include "addrmap.h"
410 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
411 Move the psymtab locator into ...
412 (find_pc_sect_psymtab_closer): ... a new function.
413
a7f1256d
UW
4142008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
415
416 * arch-utils.c (gdbarch_update_p): Use default values for
417 info.abfd and info.target_desc if they are NULL.
418 (gdbarch_from_bfd): Remove assertion.
419 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
420 using the current target description.
421 (gdbarch_info_fill): Do not use default values for info->abfd
422 and info->target_desc.
423
b2de52bb
JK
4242008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
425
426 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
427
515630c5
UW
4282008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
429
430 * inferior.h (read_pc_pid, write_pc_pid): Remove.
431 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
432
433 * regcache.c (read_pc_pid): Remove, replace by ...
434 (regcache_read_pc): ... this function.
435 (write_pc_pid): Remove, replace by ...
436 (regcache_write_pc): ... this function.
437 (read_pc, write_pc): Update.
438
439 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
440 write_pc_pid by regcache_read_pc and regcache_write_pc.
441 (displaced_step_fixup): Likewise.
442 (resume): Likewise. Use regcache arch instead of current_gdbarch.
443 (prepare_to_proceed): Likewise.
444 (proceed): Likewise.
445 (adjust_pc_after_break): Likewise.
446 (handle_inferior_event): Likewise.
447
448 * linux-nat.c (cancel_breakpoint): Likewise.
449 * linux-thread-db.c (check_event): Likewise.
450 * aix-thread.c (aix_thread_wait): Likewise.
451 * tracepoint.c (trace_dump_command): Likewise.
452
ebd3bcc1
JK
4532008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
456 SYMBOL_LOCATION_BATON.
457
c47ffbe3
VP
4582008-05-04 Vladimir Prus <vladimir@codesourcery.com>
459
f78bff48
VP
460 * target.h (struct target_ops): New field to_auxv_parse.
461 * auxv.c (default_auxv_parse): New, renamed from previous
462 target_auxv_parse.
463 (target_auxv_parse): Try to call target method. Fallback to
464 default_auxv_parse if not found.
465 * procfs.c (procfs_auxv_parse): New.
466 (init_procfs_ops): On Solaris, in 64-bit mode, install
467 procfs_auxv_parse.
c47ffbe3 468
35076fa0
AN
4692008-05-03 Adam Nemet <anemet@caviumnetworks.com>
470
471 * symfile.c (add_symbol_file_command): Use paddress rather than
472 hex_string to print the address.
473
5b197912
UW
4742008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
475
476 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
477 return the null frame ID to terminate the backtrace.
478
4a7622d1
UW
4792008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
480
481 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
482 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
483 (SIG_FRAME_PC_OFFSET): Likewise.
484 (SIG_FRAME_LR_OFFSET): Likewise.
485 (SIG_FRAME_FP_OFFSET): Likewise.
486 (rs6000_push_dummy_call): Likewise.
487 (rs6000_return_value): Likewise.
488 (rs6000_convert_from_func_ptr_addr): Likewise.
489 (branch_dest, rs6000_software_single_step): Likewise.
490 (deal_with_atomic_sequence): Rename to ...
491 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
492 Do not call branch_dest; inline required parts of that function.
493 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
494 with SYMBOL_LINKAGE_NAME.
495 (struct reg, regsize): Delete.
496 (read_memory_addr): Delete; inline into callers.
497 (rs6000_skip_prologue): Move after skip_prologue.
498 (skip_prologue): Remove prototype.
499 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
500 initialization as if this variable were true. Do not install
501 ppc64_sysv_abi_adjust_breakpoint_address.
502
503 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
504 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
505 and "breakpoint.h".
506 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
507 (SIG_FRAME_PC_OFFSET): Likewise.
508 (SIG_FRAME_LR_OFFSET): Likewise.
509 (SIG_FRAME_FP_OFFSET): Likewise.
510 (rs6000_push_dummy_call): Likewise.
511 (rs6000_return_value): Likewise.
512 (rs6000_convert_from_func_ptr_addr): Likewise.
513 (branch_dest, rs6000_software_single_step): Likewise. Replace
514 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
515 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
516 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
517 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
518 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
519
520 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
521 (AIX_TEXT_SEGMENT_BASE): New macro.
522 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
523 by AIX_TEXT_SEGMENT_BASE.
524
525 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
526 (struct gdbarch_tdep): Remove text_segment_base member.
527 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
528 ppc64_sysv_abi_adjust_breakpoint_address.
529
530 * Makefile.in (rs6000-tdep.o): Update dependencies.
531 (rs6000-aix-tdep.o): Likewise.
532
938f5214
TJB
5332008-05-03 Luis Machado <luisgpm@br.ibm.com>
534 Thiago Jung Bauermann <bauerman@br.ibm.com>
535
536 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
537 * doublest.c (convert_typed_floating): Fix typo in comment.
538 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
539 * frame-unwind.h (frame_sniffer_ftype): Likewise.
540 * frame.c (frame_unwind_address_in_block): Likewise.
541 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
542 * symtab.h (struct symbol): Likewise.
543 * tramp-frame.h (struct trad_frame_cache): Likewise.
544 * value.c (allocate_repeat_value): Likewise.
545
0b02b92d
UW
5462008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
547
548 * infrun.c (handle_inferior_event): Do not insert breakpoints at
549 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
550
d705c43c
PA
5512008-05-03 Pedro Alves <pedro@codesourcery.com>
552
553 * parse.c (parse_exp_in_context): Don't override
554 expression_context_pc if get_selected_block returned a valid
555 block.
556
d6350901
DJ
5572008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
558
559 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
560 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
561 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
562 Delete.
563 * c-typeprint.c (c_type_print_base): Delete handling of template
564 instantiations.
565 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
566 (METHOD_PTR_TO_VOFFSET): Delete.
567 * defs.h (QUIT_FIXME): Delete.
568 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
569 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
570 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
571 ninstantiations, and instantiations.
572 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
573 (TYPE_FN_FIELD_INLINED): Delete.
574 * srec.h (SREC_BINARY): Delete.
575 * symtab.c (symbol_init_demangled_name): Delete.
576 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
577 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
578 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
579 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
580 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
581 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
582 * target.h (enum thread_control_capabilities): Delete tc_switch.
583 (target_can_switch_threads): Delete.
584
30510692
DJ
5852008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
586
587 * Makefile.in (objfiles.o): Update.
588 * exec.c (exec_set_section_address): Support p->addr != 0.
589 * objfiles.c (objfile_relocate): Update exec_ops section
590 addresses.
591 * symfile.c (place_section): Move exec_set_section_address call...
592 (default_symfile_offsets): ...to here.
593
7284e1be
UW
5942008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
595
596 * Makefile.in (ppc_linux_tdep_h): New macro.
597 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
598 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
599 (powerpc_e500l_c): Likewise.
600 (ppc-linux-nat.o): Update dependencies.
601 (ppc-linux-tdep.o): Update dependencies.
602 (rs6000-tdep.o): Update dependencies.
603
604 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
605 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
606 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
607 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
608 (tdesc_powerpc_e500): Remove.
609
610 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
611 and "features/rs6000/powerpc-altivec64.c".
612 (ppc_supply_reg, ppc_collect_reg): Make global.
613 (variants): Use tdesc_powerpc_32 for "powerpc" and
614 tdesc_powerpc_altivec64 for "powerpc64".
615 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
616
617 * ppc-linux-tdep.h: New file.
618
619 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
620 Include "features/rs6000/powerpc-32l.c".
621 Include "features/rs6000/powerpc-altivec32l.c".
622 Include "features/rs6000/powerpc-64l.c".
623 Include "features/rs6000/powerpc-altivec64l.c".
624 Include "features/rs6000/powerpc-e500l.c".
625 (ppc_linux_supply_gregset): New function.
626 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
627 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
628 (ppc64_linux_gregset): Likewise.
629 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
630 (ppc_linux_trap_reg_p): New function.
631 (ppc_linux_write_pc): New function.
632 (ppc_linux_core_read_description): New function.
633 (ppc_linux_init_abi): Install ppc_linux_write_pc and
634 ppc_linux_core_read_description. Install orig_r3 and trap
635 registers if present in the target description.
636 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
637
638 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
639 (PT_ORIG_R3, PT_TRAP): Define if necessary.
640 (ppc_register_u_addr): Handle orig_r3 and trap registers.
641 (fetch_ppc_registers): Likewise.
642 (store_ppc_registers): Likewise.
643 (store_register): Likewise.
644 (ppc_linux_read_description): Check whether AltiVec is supported.
645 Check whether inferior is 32-bit or 64-bit. Return the appropriate
646 Linux target description.
647
648 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
649 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
650 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
651 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
652 rs6000/powerpc-e500. Update -expedite variables accordingly.
653
654 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
655 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
656 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
657 * features/rs6000/powerpc-e500.c: Regenerate.
658 * features/rs6000/powerpc-32.c: Regenerate.
659 * features/rs6000/powerpc-64.c: Regenerate.
660
661 * features/rs6000/power-linux.xml: New file.
662 * features/rs6000/power64-linux.xml: New file.
663 * features/rs6000/powerpc-32l.xml: New file.
664 * features/rs6000/powerpc-altivec32l.xml: New file.
665 * features/rs6000/powerpc-64l.xml: New file.
666 * features/rs6000/powerpc-altivec64l.xml: New file.
667 * features/rs6000/powerpc-e500l.xml: New file.
668 * features/rs6000/powerpc-32l.c: New (generated) file.
669 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
670 * features/rs6000/powerpc-64l.c: New (generated) file.
671 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
672 * features/rs6000/powerpc-e500l.xml: New (generated) file.
673
674 * regformats/reg-ppc.dat: Remove.
675 * regformats/reg-ppc64.dat: Remove.
676 * regformats/rs6000/powerpc-32.dat: Remove.
677 * regformats/rs6000/powerpc-64.dat: Remove.
678 * regformats/rs6000/powerpc-e500.dat: Remove.
679 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
680 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
681 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
682 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
683 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
684
063bfe2e
VP
6852008-05-03 Pedro Alves <pedro@codesourcery.com>
686
687 * thread.c (delete_thread): Call observer_notify_thread_exit.
688 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
689 thread_exit observer.
690 (mi_thread_exit): New.
691
f132ba9d
TJB
6922008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
693
694 * breakpoint.c (create_exception_catchpoint): Remove prototype
695 for already deleted function.
696 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
697 * frame.h (show_stack_frame): Remove prototype.
698 * stack.c (show_stack_frame): Remove empty, unused function.
699 * source.c (symtab_to_fullname, print_source_lines): Small fix
700 in comment.
701 * value.c (show_values): Update comments to mention "show values"
702 command instead of "info history".
703
bccdca4a
UW
7042008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
705
706 * linespec.c: Include "target.h".
707 (minsym_found): Handle minimal symbols pointing to function
708 descriptors. Use find_function_start_pc.
709 * minsyms.c (msymbol_objfile): New function.
710 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
711 to function descriptors.
712 * symtab.c (fixup_section): Only use minimal symbol at the same
713 address to determine section of a symbol.
714 (find_function_start_pc): New function.
715 (find_function_start_sal): Use it.
716 * symtab.h (msymbol_objfile): Add prototype.
717 (find_function_start_pc): Likewise.
718 * value.c: Include "objfiles.h".
719 (value_fn_field): Handle minimal symbols pointing to function
720 descriptors.
721 * Makefile.in (linespec.o): Update dependencies.
722 (value.o): Likewise.
723
de4d072f
JB
7242008-05-02 Joel Brobecker <brobecker@adacore.com>
725
726 * ada-lang.c (unwrap_value): Handle the case where the "F" field
727 inside a PAD type is a bitfield.
728
93d4208d
UW
7292008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
730
731 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
732 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
733 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
734 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
735 Allow typedefs when checking for function pointer arguments.
736 Right-align small structs passed on the stack.
737 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
738 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
739 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
740
60c5725c
DJ
7412008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
742
743 * Makefile.in (arm-tdep.o): Update.
744 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
745 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
746 (arm_pc_is_thumb): Use mapping symbols.
747 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
748 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
749 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
750 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
751 * gdbarch.sh: Add record_special_symbol.
752 * gdbarch.c, gdbarch.h: Regenerated.
753 * objfiles.c (struct objfile_data): Add cleanup member.
754 (register_objfile_data_with_cleanup): New function, from
755 register_objfile_data.
756 (register_objfile_data): Use it.
757 (objfile_free_data): Call clear_objfile_data.
758 (clear_objfile_data): Call cleanup functions.
759 * objfiles.h (register_objfile_data_with_cleanup): Declare.
760
574dffa2
DJ
7612008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
762
763 * objfiles.c (init_entry_point_info): Handle shared libraries.
764
2c404490
DJ
7652008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
766
767 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
768 lowest_pc.
769
237fc4c9
PA
7702008-05-02 Jim Blandy <jimb@codesourcery.com>
771 Pedro Alves <pedro@codesourcery.com>
772
773 Implement displaced stepping.
774
775 * gdbarch.sh (max_insn_length): New 'variable'.
776 (displaced_step_copy, displaced_step_fixup)
777 (displaced_step_free_closure, displaced_step_location): New
778 functions.
779 (struct displaced_step_closure): Add forward declaration.
780 * gdbarch.c, gdbarch.h: Regenerated.
781
782 * arch-utils.c: #include "objfiles.h".
783 (simple_displaced_step_copy_insn)
784 (simple_displaced_step_free_closure)
785 (displaced_step_at_entry_point): New functions.
786 * arch-utils.h (simple_displaced_step_copy_insn)
787 (simple_displaced_step_free_closure)
788 (displaced_step_at_entry_point): New prototypes.
789
790 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
791 (I386_MAX_MATCHED_INSN_LEN): ... this.
792 (i386_absolute_jmp_p, i386_absolute_call_p)
793 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
794 (i386_displaced_step_fixup): New functions.
795 (struct i386_insn, i386_match_insn): Update.
796 (i386_gdbarch_init): Set gdbarch_max_insn_length.
797 * i386-tdep.h (I386_MAX_INSN_LEN): New.
798 (i386_displaced_step_fixup): New prototype.
799 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
800 Register gdbarch_displaced_step_copy,
801 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
802 and gdbarch_displaced_step_location functions.
803
804 * infrun.c (debug_displaced): New variable.
805 (show_debug_displaced): New function.
806 (struct displaced_step_request): New struct.
807 (displaced_step_request_queue, displaced_step_ptid)
808 (displaced_step_gdbarch, displaced_step_closure)
809 (displaced_step_original, displaced_step_copy)
810 (displaced_step_saved_copy, can_use_displaced_stepping): New
811 variables.
812 (show_can_use_displaced_stepping, use_displaced_stepping)
813 (displaced_step_clear, cleanup_displaced_step_closure)
814 (displaced_step_dump_bytes, displaced_step_prepare)
815 (displaced_step_clear_cleanup, write_memory_ptid)
816 (displaced_step_fixup): New functions.
817 (resume): Call displaced_step_prepare.
818 (proceed): Call read_pc once, and remember the value. If using
819 displaced stepping, don't remove breakpoints.
820 (handle_inferior_event): Call displaced_step_fixup. Add some
821 debugging output. When we try to step over a breakpoint, but get
822 a signal to deliver to the thread instead, ensure the step-resume
823 breakpoint is actually inserted. If a thread hop is needed, and
824 displaced stepping is enabled, don't remove breakpoints.
825 (init_wait_for_inferior): Call displaced_step_clear.
826 (_initialize_infrun): Add "set debug displaced" command. Add
827 "maint set can-use-displaced-stepping" command. Clear
828 displaced_step_ptid.
829 * inferior.h (debug_displaced): Declare variable.
830 (displaced_step_dump_bytes): Declare function.
831
832 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
833 dependencies.
834
0428b8f5
DJ
8352008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
836
837 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
838 (arm_force_mode_string, arm_show_fallback_mode)
839 (arm_show_force_mode): New.
840 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
841 arm_frame_is_thumb.
842 (_initialize_arm_tdep): Add "set arm fallback-mode"
843 and "set arm force-mode".
844 * NEWS: Document new commands.
845
d01a8610
AS
8462008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
847
848 * main.h (batch_silent): Declare.
849 * event-top.c: Include main.h.
850 (gdb_setup_readline): Remove extern batch_silent declaration.
851 * infrun.c (normal_stop): Don't print source location when running in
852 --batch-silent mode.
853 * Makefile.in (event-top.o): Add main.h dependency.
854
5009afc5
AS
8552008-05-02 Andreas Schwab <schwab@suse.de>
856
857 * target.h (struct target_ops): Add
858 to_watchpoint_addr_within_range.
859 (target_watchpoint_addr_within_range): New function.
860 * target.c (update_current_target): Inherit
861 to_watchpoint_addr_within_range, defaulting to
862 default_watchpoint_addr_within_range.
863 (default_watchpoint_addr_within_range): New function.
864 (debug_to_watchpoint_addr_within_range): New function.
865 (setup_target_debug): Set to_watchpoint_addr_within_range.
866 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
867 New function.
868 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
869 * breakpoint.c (watchpoints_triggered): Use
870 target_watchpoint_addr_within_range.
871
a15c5c83
PA
8722008-05-01 Pedro Alves <pedro@codesourcery.com>
873
874 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
875 (i[34567]86-*-dicos*, x86_64-*-dicos*):
876 Set gdb_osabi to GDB_OSABI_DICOS.
877
878 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
879 * osabi.c (gdb_osabi_name): Add "DICOS".
880
881 * i386-dicos-tdep.c: New file.
882
883 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
884 (ALLDEPFILES): Add i386-dicos-tdep.c.
885 (i386-dicos-tdep.o): New rule.
886
728c8f58
PA
8872008-05-01 Pedro Alves <pedro@codesourcery.com>
888
889 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
890 and register the fork's PTID as a thread.
891
604133b5
AR
8922008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
893
894 PR gdb/1665
895 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
896 assign its value to the breakpoint created.
897 (create_breakpoints): Add breakpoint_ops argument and pass it
898 to create_breakpoint call.
899 (break_command_really): Add breakpoint_ops argument and pass/assign
900 appropriately.
901 (break_command_1): Pass NULL as ops argument.
902 (set_breakpoint): Pass NULL as ops argument.
903 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
904 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
905 catch and throw catchpoints.
5009afc5 906
1f906a60 9072008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
908
909 PR gdb/2343
910 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
911 translate signal numeric value from the target to GDB's enum
912 target_signal.
913 * gdbarch.c, gdbarch.h: Regenerated.
914 * gdbarch.sh: Added two new functions target_signal_from_host and
915 target_signal_to_host.
916 * target.h (default_target_signal_from_host,
917 default_target_signal_to_host): New functions - declarations.
918 * signals/signals.c (struct gdbarch): New declaration.
919 (default_target_signal_to_host, default_target_signal_from_host): New
920 functions.
921
b39cc962
DJ
9222008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
923
924 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
925 * arm-tdep.c (arm_frame_is_thumb): New.
926 (arm_pc_is_thumb): Clarify comment.
927 (thumb_analyze_prologue): Remove PC special case.
928 (thumb_scan_prologue): Take a block_addr argument. Use it for
929 find_pc_partial_function. Remove unused variables.
930 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
931 for find_pc_partial_function. Remove PC special case.
932 (arm_prologue_prev_register): Add special handling for PC and CPSR.
933 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
934 (arm_get_next_pc): Use arm_frame_is_thumb.
935 (arm_write_pc): Use CPSR_T instead of 0x20.
936 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
937 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
938 (CPSR_T): Define.
939 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
940 DWARF2_FRAME_REG_FN.
941 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
942 DWARF2_FRAME_REG_FN.
943 (struct dwarf2_frame_state_reg): Add FN to loc union.
944
944f08ab
JB
9452008-05-01 Nick Roberts <nickrob@snap.net.nz>
946
947 * exec.c (print_section_info): Add missing '\n'.
948
cfc01461
VP
9492008-05-01 Vladimir Prus <vladimir@codesourcery.com>
950
951 * thread.c (add_thread): Move observer call to ...
952 (add_thread_silent): ... here.
953
1af5d7ce
UW
9542008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
955
956 * rs6000-tdep.c: Update for unwinder changes.
957 * ppcobsd-tdep.c: Likewise.
958
f089c433
UW
9592008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
960
961 * s390-tdep.c: Update for unwinder changes.
962
8d998b8f
UW
9632008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
964
965 * spu-tdep.c: Update for unwinder changes.
966
5366653e
DJ
9672008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
968
969 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
970 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
971 sparc64-linux-tdep.c: Update for unwinder changes.
972
b8a22b94
DJ
9732008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
974
975 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
976 for unwinder changes.
977 * mips-tdep.c: Likewise.
978 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
979 raw one.
980
a262aec2
DJ
9812008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
982
983 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
984 unwinder changes.
985
10458914
DJ
9862008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
987
988 Update i386 and amd64 ports for unwinder changes.
989
990 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
991 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
992 (amd64_frame_unwind): Use default_frame_sniffer.
993 (amd64_frame_sniffer): Delete.
994 (amd64_sigtramp_frame_cache): Expect this_frame.
995 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
996 (amd64_sigtramp_frame_sniffer): Update signature.
997 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
998 (amd64_frame_base_address): Expect this_frame.
999 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
1000 this_frame.
1001 (amd64_init_abi): Use set_gdbarch_dummy_id and
1002 frame_unwind_append_unwinder.
1003 * i386-tdep.c (i386_frame_cache): Expect this_frame.
1004 (i386_frame_this_id, i386_frame_prev_register): Update signature.
1005 (i386_frame_unwind): Use default_frame_sniffer.
1006 (i386_frame_sniffer): Delete.
1007 (i386_sigtramp_frame_cache): Expect this_frame.
1008 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
1009 (i386_sigtramp_frame_sniffer): Update signature.
1010 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
1011 (i386_frame_base_address): Update signature.
1012 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
1013 (i386_push_dummy_call): Update comment.
1014 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
1015 Expect this_frame.
1016 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
1017 and frame_unwind_append_unwinder.
1018 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
1019 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
1020 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
1021 i386nbsd-tdep.c: Update for unwinder changes.
1022
25492ce3
DJ
10232008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1024
1025 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
1026 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
1027 this_frame.
1028 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
1029 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
1030 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
1031 signature.
1032 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
1033 this_frame.
1034 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
1035 Update signature.
1036 * tramp-frame.h (struct tramp_frame): Update signature of init.
1037 * Makefile.in (trad-frame.o): Update.
1038
4a4e5149
DJ
10392008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1040
1041 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
1042 (execute_stack_op): Put this_frame in the baton.
1043 (execute_cfa_program): Take this_frame.
1044 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
1045 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
1046 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
1047 (dwarf2_frame_this_id): Adjust to work on this_frame.
1048 (dwarf2_signal_frame_this_id): Delete.
1049 (dwarf2_frame_prev_register): Update signature. Use new frame
1050 unwind methods.
1051 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
1052 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
1053 dwarf2_frame_sniffer.
1054 (dwarf2_append_unwinders): New.
1055 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
1056 this_frame.
1057 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
1058 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
1059 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
1060 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
1061 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
1062 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
1063 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
1064 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
1065 (dwarf2_append_unwinders): Declare.
1066 (dwarf2_frame_base_sniffer): Update declaration.
1067 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
1068 this_frame.
1069
669fac23
DJ
10702008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1071
1072 Convert frame unwinders to use the current frame and
1073 "struct value".
1074
1075 * frame.c (frame_debug): Make global.
1076 (get_frame_id): Pass this frame to unwinder routines.
1077 (frame_pc_unwind): Remove unused unwind->prev_pc support.
1078 (do_frame_register_read): Do not discard the return value of
1079 frame_register_read.
1080 (frame_register_unwind): Remove debug messages. Use
1081 frame_unwind_register_value.
1082 (frame_unwind_register_value, get_frame_register_value): New
1083 functions.
1084 (create_new_frame, get_frame_base_address, get_frame_locals_address)
1085 (get_frame_args_address, get_frame_type): Pass this frame to
1086 unwinder routines.
1087 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
1088 functions.
1089 * frame.h: Update comments.
1090 (frame_debug, frame_unwind_register_value, get_frame_register_value)
1091 (frame_prepare_for_sniffer): Declare.
1092 * frame-unwind.h: Update comments and parameter names.
1093 (default_frame_sniffer): Declare.
1094 (frame_prev_register_ftype): Return a struct value *.
1095 (struct frame_unwind): Remove prev_pc member.
1096 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
1097 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
1098 (frame_unwind_got_register, frame_unwind_got_memory)
1099 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
1100 * frame-base.h: Update comments and parameter names.
1101 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
1102 if necessary. Add debugging output.
1103 * sentinel-frame.c (sentinel_frame_prev_register)
1104 (sentinel_frame_this_id): Update for new signature.
1105 (sentinel_frame_prev_pc): Delete.
1106 (sentinel_frame_unwinder): Remove prev_pc.
1107 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
1108 prev_pc.
1109 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
1110 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
1111 (frame_unwind_append_sniffer): Delete.
1112 (frame_unwind_append_unwinder): New function.
1113 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
1114 from unwinders. Use frame_prepare_for_sniffer.
1115 (default_frame_sniffer, frame_unwind_got_optimized)
1116 (frame_unwind_got_register, frame_unwind_got_memory)
1117 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
1118 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
1119 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
1120 signature.
1121 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
1122 * gdbarch.c, gdbarch.c: Regenerated.
1123 * frame-base.c (default_frame_base_address)
1124 (default_frame_locals_address, default_frame_args_address): Update
1125 for new signature.
1126 (frame_base_find_by_frame): Pass this frame to unwinder routines.
1127 * infcall.c (call_function_by_hand): Update comments.
1128 * Makefile.in (frame-unwind.o): Update dependencies.
1129
9214ee5f
DJ
11302008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1131
1132 * ada-lang.c (ada_value_primitive_packed_val): Only check
1133 value_lazy for memory lvals.
1134 * findvar.c (value_of_register_lazy): New function.
1135 (locate_var_value): Only check value_lazy for memory lvals.
1136 * valarith.c (value_subscripted_rvalue): Likewise.
1137 * valops.c (value_fetch_lazy): Handle both memory and register
1138 lvals.
1139 (search_struct_field, value_slice): Only check value_lazy for memory
1140 lvals.
1141 * value.c (struct value): Update comment for lazy.
1142 (value_primitive_field): Only check value_lazy for memory lvals.
1143 * value.h (value_lazy): Update comment.
1144 (value_of_register_lazy): Declare.
1145
939643d7
DJ
11462008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
1147
1148 * corefile.c (reopen_exec_file): Close any open files.
1149
1de34ab7
JB
11502008-04-29 Joel Brobecker <brobecker@adacore.com>
1151
1152 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
1153 show_memory_breakpoints to 1 while reading the instruction bundle.
1154
ea42b34a
JB
11552008-04-29 Joel Brobecker <brobecker@adacore.com>
1156
1157 * gdbarch.sh: Document the return_value method. Explain that
1158 the FUNCTYPE parameter might be NULL.
1159 * gdbarch.h: Regenerated.
1160 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
1161 type when calling using_struct_return, as this is unnecessary
1162 on this target.
1163
a0fe373c
JB
11642008-04-28 Joel Brobecker <brobecker@adacore.com>
1165
1166 * terminal.h (create_tty_session): Fix return type.
1167
c6446539
VP
11682008-04-26 Vladimir Prus <vladimir@codesourcery.com>
1169
1170 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
1171
2f069f6f
JB
11722008-04-26 Joel Brobecker <brobecker@adacore.com>
1173
1174 * breakpoint.c (condition_command, commands_from_control_command)
1175 (break_command_really): Minor reformatting.
1176
93b5768b
PA
11772008-04-25 Pedro Alves <pedro@codesourcery.com>
1178
1179 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
1180
436675d3
PA
11812008-04-25 Pedro Alves <pedro@codesourcery.com>
1182
1183 * amd64-tdep.c (amd64_get_longjmp_target): New.
1184 (amd64_init_abi): Register amd64_get_longjmp_target as
1185 gdbarch_get_longjmp_target callback.
1186 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
1187
78b6a731
PA
11882008-04-25 Pedro Alves <pedro@codesourcery.com>
1189
1190 * breakpoint.h (enum bpstat_what_main_action): Delete
1191 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
1192
1193 * breakpoint.c (clrs): Delete.
1194 (bpstat_what): Update table.
1195
1196 * infrun.c (handle_inferior_event): Remove
1197 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
1198
9e22b03a
VP
11992008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1200
1201 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
1202 Adjust all prototypes using mi_cmd_args_ftype to use
1203 mi_cmd_argv_ftype.
1204 (struct mi_cmd): Remove the args_func field.
1205 * mi/mi-cmds.c: Don't provide value for the args_func field.
1206 * mi/mi-main.c (mi_execute_async_cli_command)
1207 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
1208 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
1209 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
1210 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
1211 (mi_cmd_target_download): Adjust.
1212 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
1213 (mi_cmd_execute): Do not check for args_func.
1214 (mi_execute_async_cli_command): Adjust.
1215 * mi/mi-parse.c: Don't check for args_func.
1216
721c02de 12172008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393
VP
1218
1219 * breakpoint.c (bpstat_check_location)
1220 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
1221 New, extracted from bpstat_stop_status.
1222 (bpstat_stop_status): Use the above.
1223
12242008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1225
721c02de
VP
1226 * mi/mi-main.c (last_async_command): Rename to current_token.
1227 (previous_async_command): Remove.
1228 (mi_cmd_gdb_exit): Adjust.
1229 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
1230 (mi_cmd_target_select): Adjust.
1231 (mi_cmd_execute): Don't set previous_async_command. Free token
1232 here even in async mode.
1233 (mi_execute_async_cli_command): Adjust.
1234 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
1235 token.
1236 (mi_load_progress): Adjust.
1237
f13468d9
VP
12382008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1239
1240 * infcmd.c (step_1_continuation): Always disable longjmp
1241 breakpoint if we're not going to do another step.
1242
f107f563
VP
12432008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1244
1245 exec_cleanup murder.
1246 * breakpoint.c (until_break_command_continuation): Add
1247 the 'error' parameter. Directly delete the breakoint as
1248 opposed to running cleanups.
1249 (until_break_command): Install continuation only
1250 after starting the target. Don't use exec cleanups,
1251 use ordinary cleanups. Discard cleanups is successfully
1252 started the target in async mode.
1253 (make_cleanup_delete_breakpoint): Remove.
1254 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
1255 declaration.
1256 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
1257 declarations.
1258 (struct continations): Add the 'error' parameter to the
1259 continuation_hook field.
1260 (add_continuation, do_all_continuations)
1261 (add_intermediate_continuation)
1262 (do_all_intermediate_continuations): Add the 'error' parameter.
1263 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
1264 * inf-loop.c (inferior_event_handler): Instead of calling
1265 discard_all_continuations, use do_all_continuations with 1 as
1266 'error' parameter. Pass 0 as 'error' parameter in existing uses
1267 of discard_all_continuations.
1268 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
1269 cleanups.
1270 (step_once): Install continuation only after resuming the target.
1271 (step_1_continuation): Disable longjmp breakpoint on error.
1272 (finish_command_continuation): Add the error parameter. Delete
1273 the finish breakpoint directly, do not use cleanups.
1274 (finish_command): Do not use exec_cleanups. Always setup
1275 continuation. For sync case, immediately run them.
1276 (attach_command_continuation): Add the error parameter.
1277 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
1278 remove step_resume_breakpoint -- adjust delete it directly.
1279 * interps.c (interp_set): Adjust call to do_all_continations.
1280 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
1281 do exec cleanups.
1282 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
1283 cleanups.
1284 (mi_cmd_execute): Do not use exec_cleanup.
1285 (mi_execute_async_cli_command): Simplify the string concatenation
1286 logic. Do no use exec cleanup.
1287 (mi_exec_async_cli_cmd_continuation): New parameter error.
1288 Free last_async_command.
1289 * top.c (command_line_handler_continuation): New parameter error.
1290 * utils.c (exec_cleanup_chain, make_exec_cleanup)
1291 (do_exec_cleanups): Remove.
1292 (add_continuation, do_all_continations)
1293 (add_intermediate_continuation)
1294 (do_all_intermediate_continuations): New parameter error.
1295
74960c60
VP
12962008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1297
1298 * breakpoint.h (bp_location_p): New typedef.
1299 Register a vector of bp_location_p.
1300 * breakpoint.c (always_inserted_mode)
1301 (show_always_inserted_mode): New.
1302 (unlink_locations_from_global_list): Remove.
1303 (update_global_location_list)
1304 (update_global_location_list_nothrow): New.
1305 (update_watchpoint): Don't free locations.
1306 (should_insert_location): New.
1307 (insert_bp_location): Use should_insert_location.
1308 (insert_breakpoint_locations): Copied from
1309 insert_breakpoints.
1310 (insert_breakpoint): Use insert_breakpoint_locations.
1311 (bpstat_stop_status): Call update_global_location_list
1312 when disabling breakpoint.
1313 (allocate_bp_location): Don't add to bp_location_chain.
1314 (set_raw_breakpoint)
1315 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
1316 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
1317 (enable_overlay_breakpoints, disable_overlay_breakpoints)
1318 (set_longjmp_resume_breakpoint)
1319 (enable_watchpoints_after_interactive_call_stop)
1320 (disable_watchpoints_before_interactive_call_start)
1321 (create_internal_breakpoint)
1322 (create_fork_vfork_event_catchpoint)
1323 (create_exec_event_catchpoint, set_momentary_breakpoint)
1324 (create_breakpoints, break_command_1, watch_command_1)
1325 (create_exception_catchpoint)
1326 (handle_gnu_v3_exceptions)
1327 (disable_breakpoint, breakpoint_re_set_one)
1328 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1329 (create_ada_exception_breakpoint): : Don't call check_duplicates.
1330 Call update_global_location_list.
1331 (delete_breakpoint): Don't remove locations and don't
1332 try to reinsert them. Call update_global_location_list.
1333 (update_breakpoint_locations): Likewise.
1334 (restore_always_inserted_mode): New.
1335 (update_breakpoints_after_exec): Temporary disable
1336 always inserted mode.
1337 * Makefile.in: Update dependencies.
1338
1339 * infrun.c (proceed): Remove breakpoints while stepping
1340 over breakpoint.
1341 (handle_inferior_event): Don't remove or insert
1342 breakpoints.
1343 * linux-fork.c (checkpoint_command): Remove breakpoints
1344 before fork and insert after.
1345 (linux_fork_context): Remove breakpoints before switch
1346 and insert after.
1347 * target.c (target_disconnect, target_detach): Remove
1348 breakpoints from target.
1349
1350
d24317b4
VP
13512008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1352
1353 * breakpoint.c (print_one_breakpoint_location): In MI
1354 mode, report the location string the breakpoint was
1355 originally created with.
1356
ee967b5f
MG
13572008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
1358
1359 * Makefile.in (xtensa-tdep.o): Update dependencies.
1360 * configure.tgt (xtensa*): Update dependencies.
1361 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
1362 Local variable areg renamed to arreg.
1363 (areg_number): New function.
1364 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1365 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
1366 replaced by arreg_number.
1367 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
1368 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
1369 (xtensa_scan_prologue): New function.
1370 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
1371 when ENTRY instraction hasn't been executed yet. Get the frame pointer
1372 value based on prologue analysis. Fix the bugs preventing WS and
1373 AR4-AR7/A11 registers from getting right values for intermediate frames,
1374 whose registers have been already spilled.
1375 (xtensa_frame_prev_register): Fix WS register value. Use are_number
1376 and arreg_number appropriately.
1377 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1378 svr4_ilp32_fetch_link_map_offsets.
1379
09d71d23
AS
13802008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
1381
1382 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
1383 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
1384
fdc59709
PB
13852008-04-23 Paolo Bonzini <bonzini@gnu.org>
1386
1387 * acinclude.m4: Add override.m4.
1388 * configure: Regenerate.
1389
0bcd0149
JK
13902008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1391
1392 * ada-lang.c (get_selections): Variable PROMPT made non-const and
1393 initialized with a trailing space now. Use PROMPT_ARG of
1394 COMMAND_LINE_INPUT instead of printing it ourselves.
1395
88d8a8e0
JB
13962008-04-22 Joel Brobecker <brobecker@adacore.com>
1397
1398 * NEWS: Document support for 64-bit core file.
1399
c055b101
CV
14002008-04-22 Corinna Vinschen <vinschen@redhat.com>
1401
1402 * NEWS: Add information on calling convention and new SH CLI options.
1403
1404 * sh-tdep.c (sh_cc_gcc): New static string.
1405 (sh_cc_renesas): Ditto.
1406 (sh_cc_enum): New static string array.
1407 (sh_active_calling_convention): New static string pointer denoting
1408 active user chosen ABI.
1409 (sh_is_renesas_calling_convention): New function to return function
1410 specific ABI, or user choice if necessary.
1411 (sh_use_struct_convention): Rename first argument and turn around its
1412 meaning. Check for renesas ABI and return accordingly.
1413 (sh_use_struct_convention_nofpu): New function.
1414 (sh_next_flt_argreg): Get function type as third parameter. Check
1415 for renesas ABI and choose floating registers accordingly.
1416 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
1417 struct return slot accordingly.
1418 (sh_push_dummy_call_nofpu): Ditto.
1419 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
1420 Evaluate ABI and give to sh_use_struct_convention_nofpu.
1421 (sh_return_value_fpu): Evaluate ABI and give to
1422 sh_use_struct_convention.
1423 (show_sh_command): New function.
1424 (set_sh_command): Ditto.
1425 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
1426 CLI command.
1427
1428 * gdbarch.sh (return_value): Add func_type argument.
1429 * gdbarch.c: Regenerate.
1430 * gdbarch.h: Ditto.
1431 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
1432 val_type so as not to collide with value_type function. Call
1433 using_struct_return with additional function type argument.
1434 * infcall.c (call_function_by_hand): Call using_struct_return and
1435 gdbarch_return_value with additional function type argument.
1436 * infcmd.c (print_return_value): Take addition func_type argument.
1437 Call gdbarch_return_value with additional function type argument.
1438 (finish_command_continuation): Call print_return_value with additional
1439 function type argument.
1440 (finish_command): Ditto.
1441 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
1442 additional function type argument.
1443 * stack.c (return_command): Call using_struct_return and
1444 gdbarch_return_value with additional function type argument.
1445 * value.c (using_struct_return): Take additional function type argument.
1446 * value.h (using_struct_return): Accommodate declaration.
1447 * alpha-tdep.c (alpha_return_value): Add func_type argument.
1448 * amd64-tdep.c (amd64_return_value): Ditto.
1449 * arm-tdep.c (arm_return_value): Ditto.
1450 * avr-tdep.c (avr_return_value): Ditto.
1451 * cris-tdep.c (cris_return_value): Ditto.
1452 * frv-tdep.c (frv_return_value): Ditto.
1453 * h8300-tdep.c (h8300_return_value): Ditto.
1454 (h8300h_return_value): Ditto.
1455 * hppa-tdep.c (hppa32_return_value): Ditto.
1456 (hppa64_return_value): Ditto.
1457 * i386-tdep.c (i386_return_value): Ditto.
1458 * ia64-tdep.c (ia64_return_value): Ditto.
1459 * iq2000-tdep.c (iq2000_return_value): Ditto.
1460 * m32c-tdep.c (m32c_return_value): Ditto.
1461 * m32r-tdep.c (m32r_return_value): Ditto.
1462 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
1463 * m68k-tdep.c (m68k_return_value): Ditto.
1464 (m68k_svr4_return_value): Ditto.
1465 * m88k-tdep.c (m88k_return_value): Ditto.
1466 * mep-tdep.c (mep_return_value): Ditto.
1467 * mips-tdep.c (mips_eabi_return_value): Ditto.
1468 (mips_n32n64_return_value): Ditto.
1469 (mips_o32_return_value): Ditto.
1470 (mips_o64_return_value): Ditto.
1471 * mn10300-tdep.c (mn10300_return_value): Ditto.
1472 * mt-tdep.c (mt_return_value): Ditto.
1473 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
1474 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
1475 (ppc_sysv_abi_broken_return_value): Ditto.
1476 (ppc64_sysv_abi_return_value): Ditto.
1477 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1478 (ppc_sysv_abi_broken_return_value): Ditto.
1479 (ppc64_sysv_abi_return_value): Ditto.
1480 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1481 * rs6000-tdep.c (rs6000_return_value): Ditto.
1482 * s390-tdep.c (s390_return_value): Ditto.
1483 * score-tdep.c (score_return_value): Ditto.
1484 * sh-tdep.c (sh_return_value_nofpu): Ditto.
1485 (sh_return_value_fpu): Ditto.
1486 * sh64-tdep.c (sh64_return_value): Ditto.
1487 * sparc-tdep.c (sparc32_return_value): Ditto.
1488 * sparc64-tdep.c (sparc64_return_value): Ditto.
1489 * spu-tdep.c (spu_return_value): Ditto.
1490 * v850-tdep.c (v850_return_value): Ditto.
1491 * vax-tdep.c (vax_return_value): Ditto.
1492 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
1493 * xtensa-tdep.c (xtensa_return_value): Ditto.
1494
1495 * gdbtypes.h (struct type): Add calling_convention member.
1496 * dwarf2read.c (read_subroutine_type): Add calling convention read
1497 from DW_AT_calling_convention attribute to function type.
1498
9eec4d1e
MD
14992008-04-22 Markus Deuling <deuling@de.ibm.com>
1500
1501 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
1502 multi_f77_subscript to support values from registers.
1503 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
1504 * value.h (value_subscripted_rvalue): Add prototype.
1505
1506 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
1507 Fix output.
1508 * f-valprint.c (f_val_print): Likewise.
1509
ef72380d
CS
15102008-04-21 Craig Silverstein <csilvers@google.com>
1511
1512 * dwarf2read.c (zlib_decompress_section): Define abfd in the
1513 !HAVE_ZLIB_H case.
1514
ff8e85c3
PA
15152008-04-21 Pedro Alves <pedro@codesourcery.com>
1516
1517 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
1518 section is not a code section.
1519
31fffb02
CS
15202008-04-19 Craig Silverstein <csilvers@google.com>
1521
1522 * NEWS: Add information on compressed debug sections.
1523
8e91f023
VP
15242008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1525
1526 * mi/mi-cmd-var.c (varobj_update_one): Print new
1527 value for variable objects that changed type.
1528
603ba1de
VP
15292008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1530
1531 * varobj.c (varobj_invalidate): Don't touch floating
1532 varobjs.
1533
7fc830e2
MK
15342008-04-19 Mark Kettenis <kettenis@gnu.org>
1535
1536 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
1537 (multiple_symbols_cancel): Remove extra const.
1538 * symtab.h: Likewise.
1539
bcbf8b68
NR
15402008-04-19 Nick Roberts <nickrob@snap.net.nz>
1541
1542 * interps.c (top_level_interpreter): Rename static variable...
1543 (top_level_interpreter_ptr): ...to this.
1544 (top_level_interpreter): New function.
1545
1546 * interps.h: New extern for top_level_interpreter.
1547
1548 * linespec.c: Include interps.h and mi/mi-cmds.h.
1549 (decode_line_2): When using MI, always set all breakpoints in menu.
1550
1551 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
1552
31fffb02 15532008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
1554
1555 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
1556 * config.in, configure: Regenerate.
1557 * dwarf2read.c: Include zlib.h if present.
1558 Modified *_SECTION macros.
1559 (section_is_p): New.
1560 (dwarf2_locate_sections): Use section_is_p instead of strcmp
1561 (dwarf2_resize_section): New.
1562 to determine whether a given section has a given name.
1563 (zlib_decompress_section): New.
1564 (dwarf2_read_section): Read the compressed section if present
1565 in the binary.
1566 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 1567
a03b3a97
TJB
15682008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
1569
1570 * defs.h (exec_set_section_offsets): Remove prototype.
1571 * exec.c (exec_set_section_offsets): Remove function.
1572
9e386756
JB
15732008-04-18 Joel Brobecker <brobecker@adacore.com>
1574
1575 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
1576 in the search for the matching symbol.
1577
2ec93238
MK
15782008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
1579
1580 * breakpoint.c (update_watchpoint): Always reparse
1581 condition.
1582
e9bbd7c5
JB
15832008-04-17 Joel Brobecker <brobecker@adacore.com>
1584
1585 * breakpoint.c (print_one_breakpoint_location): Make sure to print
1586 the breakpoint address only once.
1587
475bbd17
JB
15882008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
1589
1590 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
1591 rather than a hard-coded architecture, for xcoff executables.
1592
86991504
DE
15932008-04-17 Doug Evans <dje@google.com>
1594
4584e32e
DE
1595 * buildsym.c (watch_main_source_file_lossage): New fn.
1596 (end_symtab): Call it.
1597
86991504
DE
1598 * source.c (find_and_open_source): Add some comments clarifying
1599 handling of FULLNAME argument. Make static. Remove pointless
1600 xstrdup/xfree.
1601
0a320680
PA
16022008-04-17 Pedro Alves <pedro@codesourcery.com>
1603
1604 * inf-loop.c (inferior_event_handler): Also run the intermediate
1605 continuations in the INF_EXEC_COMPLETE case.
1606
700b53b1
TT
16072008-04-16 Tom Tromey <tromey@redhat.com>
1608
1609 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
1610 (set_cmd_async_ok, get_cmd_async_ok): Declare.
1611 * cli/cli-decode.c (set_cmd_async_ok): New function.
1612 (get_cmd_async_ok): New function.
1613 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
1614 "show" as async-ok.
1615 * top.c (execute_command): Use get_cmd_async_ok.
1616 * infcmd.c: Include cli/cli-decode.h.
1617 (_initialize_infcmd): Mark "interrupt" as async-ok.
1618 * Makefile.in (infcmd.o): Depend on cli_decode_h.
1619
dacec2a8
DJ
16202008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1621
1622 PR gdb/2445
1623 * exec.c: Correct "arch-utils.h" include.
1624
1f906a60 16252008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
1626
1627 PR gdb/2424
1628 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
1629 to allow printing to 'see' real reason of stop. This fixes PR 2424.
1630 * breakpoint.c (bpdisp_texst): New function. The function takes over
1631 the role of bpstats static array in print_one_breakpoint_location.
1632 (print_it_typical): Print "Temporary breakpoint" instead
1633 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
1634 protocols, print disp field.
1635 (print_one_breakpoint_location): Removed bpdisps static definition.
1636 Call new bpstat_text function to get value for 'disp' field.
1637 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
1638
4d7b71aa
DJ
16392008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
1640
1641 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
1642 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
1643 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
1644 * gnulib/Makefile.in: Regenerate.
1645
aa11fd3f
DJ
16462008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1647
1648 * Makefile.in (GNULIB_H): New. Trigger all-lib.
1649 (defs_h): Use $(GNULIB_H).
1650 (all-lib): Depend on gnulib/Makefile.
1651 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
1652 * config.in, gnulib/Makefile.in: Regenerated.
1653
e28b3332
DJ
16542008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1655
1656 * Makefile.in (LIBGNU, INCGNU): Define.
1657 (INTERNAL_CFLAGS_BASE): Add INCGNU.
1658 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
1659 (CLEANDIRS): New.
1660 ($(LIBGNU), all-lib): New rules.
1661 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
1662 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
1663 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
1664 * gnulib: New directory, from gnulib-tool.
1665 * configure, aclocal.m4: Regenerated.
1666
e3bc4218
DJ
16672008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1668
1669 * linux-thread-db.c (have_threads_callback): Check thread->private.
1670
fcacd99f
VP
16712008-04-13 Nick Roberts <nickrob@snap.net.nz>
1672 Vladimir Prus <vladimir@codesourcery.com>
1673
1674 Fix @-varobjs.
1675 * varobj.c (value_of_root): Update the expression for
1676 floating varobjs.
1677 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
1678 report that.
1679
de051565
MK
16802008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
1681
1682 * mi/mi-cmd-var.c: Include "mi-getopt.h".
1683 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
1684 (mi_cmd_var_set_format): Use new mi_parse_format.
1685 (mi_cmd_var_evaluate_expression): Support for -f option to specify
1686 format.
1687 * Makefile.in (mi-cmd-var.o): Update dependencies.
1688
1689 * varobj.h (varobj_get_formatted_value): Declare.
1690 * varobj.c (my_value_of_variable): Added format parameter.
1691 (cplus_value_of_variable): Likewise.
1692 (java_value_of_variable): Likewise.
1693 (c_value_of_variable): Likewise. Evaluate expression based
1694 on format parameter.
1695 (struct language_specific): Add format parameter to function member
1696 *value_of_variable.
1697 (varobj_get_formatted_value): New.
1698 (varobj_get_value): Added format parameter to method call.
1699
56953f80
JB
17002008-04-08 Joel Brobecker <brobecker@adacore.com>
1701
1702 * stabsread.c (cleanup_undefined_types_noname): Manually set the
1703 instance flags of the undefined type before calling replace_type.
1704
e4e33b9e
VP
17052008-04-08 Vladimir Prus <vladimir@codesourcery.com>
1706
1707 * target.h (enum strata): Remove the download_stratum.
1708
92b5c263
DE
17092008-04-07 Doug Evans <dje@google.com>
1710
1711 * buildsym.h (last_source_file): Add dwarf info to comment.
1712 (last_source_start_addr): Ditto.
1713
effa26a9
PA
17142008-04-07 Pedro Alves <pedro@codesourcery.com>
1715
1716 * alphanbsd-tdep.c: Include "target.h".
1717 * mn10300-tdep.c: Include "target.h".
1718 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
1719
2b2d9e11
VP
17202008-04-06 Vladimir Prus <vladimir@codesourcery.com>
1721
1722 Fix breakpoint condition that use member variables.
1723 * valops.c (check_field): Remove.
1724 (check_field_in): Rename to check_field.
1725 (value_of_this): Use la_name_of_this.
1726 * value.h (check_field): Adjust prototype.
1727
1728 * language.h (la_value_of_this): Rename to la_name_of_this.
1729 * language.c (unknown_language_defn): Specify "this" for
1730 name_of_this.
1731 (auto_language_defn): Likewise.
1732 (local_language_defn): Likewise.
1733 * ada-lang.c (ada_language_defn): Adjust comment.
1734 * c-lang.c (c_language_defn): Adjust comment.
1735 (cplus_language_defn): Specify "this" for name_of_this.
1736 (asm_language_defn): Adjust comment.
1737 (minimal_language_defn): Adjust comment.
1738 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
1739 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
1740 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
1741 * objc-lang.c (objc_language_defn): Specify "self" for
1742 name_of_this.
1743 * p-lang.c (pascal_language_defn): Specify "this" for
1744 name_of_this.
1745 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
1746
1747 * symtab.c (lookup_symbol_aux): Lookup "this" in the
1748 proper scope, and check for field in type of "this", without
1749 trying to create a value.
1750
a13e061a
PA
17512008-04-04 Pedro Alves <pedro@codesourcery.com>
1752
1753 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
1754 (mi_error_message): Delete declaration.
1755 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
1756 returning MI_CMD_ERROR.
1757 * mi/mi-main.c (mi_error_message): Delete.
1758 (mi_cmd_exec_interrupt):
1759 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1760 (mi_cmd_thread_info): Call error instead of returning
1761 MI_CMD_ERROR.
1762 (mi_cmd_data_list_register_values): Call error instead of
1763 returning MI_CMD_ERROR. Adapt to new get_register interface.
1764 (get_register): Change return typo to void. Call error instead of
1765 returning MI_CMD_ERROR.
1766 (mi_cmd_data_write_register_values): Call error instead of
1767 returning MI_CMD_ERROR.
1768 (mi_cmd_list_features): Return MI_CMD_DONE.
1769 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1770 (mi_execute_command): Always print exceptions with -error.
1771
aad4b048
JB
17722008-04-04 Joel Brobecker <brobecker@adacore.com>
1773
1774 * NEWS: Mention new commands set/show multiple-symbols.
1775
717d2f5a
JB
17762008-04-03 Joel Brobecker <brobecker@adacore.com>
1777
1778 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1779 (multiple_symbols_cancel): New constants.
1780 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1781 (multiple_symbols_select_mode): New function.
1782 (_initialize_symtab): Add new set/show multiple-symbols commands.
1783 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1784 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1785 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1786 setting.
1787 * linespec.c (decode_line_2): Likewise.
1788
f73634e5
DE
17892008-04-03 Doug Evans <dje@sebabeach.org>
1790
1791 * symtab.h (enum free_code): Delete free_contents, unused.
1792 * symmisc.c (free_symtab_block): Delete.
1793 (free_symtab, case free_code): Delete.
1794
1f906a60 17952008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
1796
1797 * valops.c (value_cast_structs): New function. Cast related
1798 STRUCT types up/down and return cast value. The body of this
1799 function comes mostly from value_cast_pointers.
1800 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1801 to value_cast_structs. Now value_cast_pointers needs only create
1802 appropriate reference after using value_cast_structs for actual
1803 casting.
1804 (value_cast): Handle references.
1805
61ad90e1
MK
18062008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
1807
1808 * MAINTAINERS: Added myself to section Write After Approval.
1809
b7d038ae
DJ
18102008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1811
1812 * ia64-tdep.c (examine_prologue): Correct array access.
1813
1f906a60 18142008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
1815
1816 * cp-support.c (first_component_command): Return if no arguments.
1817
df3ac606
CD
18182008-03-28 Carlos O'Donell <carlos@codesourcery.com>
1819
1820 * ser-mingw.c (ser_windows_open): Open requested name.
1821
ca933485
AR
18222008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1823
1824 * MAINTAINERS: Added myself.
1825
5f667f2d
PA
18262008-03-28 Pedro Alves <pedro@codesourcery.com>
1827
1828 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1829 parameter. If it is NULL, don't call error.
1830 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1831 `do_mesg' parameter to find_default_run_target. If no target was
1832 found, return 0.
1833
e741f4d4
DJ
18342008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1835
1836 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1837 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1838 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1839 Delete.
1840 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1841
f66d8205 18422008-03-27 Joel Brobecker <brobecker@adacore.com>
1843
1844 GDB 6.8 released.
1845
221c031f
UW
18462008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1847
1848 * features/Makefile (%.dat): Set xmltarget to the base filename
1849 of the XML source, without subdirectory.
1850 * regformats/rs6000/powerpc-32.dat: Regenerate.
1851 * regformats/rs6000/powerpc-64.dat: Regenerate.
1852 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1853
40c58d95
MD
18542008-03-27 Markus Deuling <deuling@de.ibm.com>
1855
1856 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
1857 objfile arch.
1858
bb1ec7d2
NR
18592008-03-27 Nick Roberts <nickrob@snap.net.nz>
1860
1861 * mi/mi-main.c (enum captured_mi_execute_command_actions):
1862 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
1863
5e2b427d
UW
18642008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1865
1866 * objfiles.h (struct objfile): New GDBARCH member.
1867 (get_objfile_arch): Add prototype.
1868 * objfiles.c: Include "arch-utils.h".
1869 (allocate_objfile): Look up gdbarch associated with bfd.
1870 (get_objfile_arch): New function.
1871 * Makefile (objfiles.o): Update dependencies.
1872
1873 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
1874 by objfile arch.
1875 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
1876 by frame arch.
1877 (locexpr_describe_location): Replace current_gdbarch by
1878 objfile arch.
1879 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
1880 (dwarf2_add_field): Likewise.
1881 (read_tag_pointer_type): Likewise.
1882 (read_base_type): Likewise.
1883 (new_symbol): Likewise.
1884
1885 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
1886 (decode_base_type, decode_function_type): Likewise.
1887 (coff_read_struct_type, coff_read_enum_type): Likewise.
1888 (coff_symtab_read): Replace current_gdbarch by objfile arch.
1889 (decode_base_type): Likewise.
1890 (coff_read_enum_type): Likewise.
1891 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
1892 (coff_read_enum_type): Likewise.
1893
1894 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
1895 (end_psymtab): Likewise.
1896 (process_one_symbol): Likewise.
1897
1898 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
1899 (parse_procedure): Likewise.
1900 (parse_partial_symbols): Likewise.
1901
1902 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
1903
1904 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
1905 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
1906 built-in types.
1907 (read_range_type): Replace current_gdbarch by objfile arch. Replace
1908 static range_index_type by built-in type.
1909 (read_one_struct_field): Replace current_gdbarch by objfile arch.
1910 (read_enum_type): Likewise.
1911
1912 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
1913 objfile arch.
1914
5a413362
VP
19152008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1916
1917 * varobj.h (varobj_floating_p): Declare.
1918 * varobj.c (varobj_floating_p): New.
1919 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
1920 '@' as the name, update all floating varobjs.
1921
a5defcdc
VP
19222008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1923
1924 * varobj.c (struct varobj_root): Rename use_selected_frame to
1925 floating, and clarify the meaning.
1926 (varobj_create, varobj_update, new_root_variable): Adjust.
1927 (value_of_root): Don't use type_changed as in variable,
1928 adjust comment.
1929 (c_value_of_root): Adjust.
5a413362 1930
403fe197
PA
19312008-03-25 Pedro Alves <pedro@codesourcery.com>
1932
1933 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
1934 gdb's thread list.
1935 (linux_nat_wait): Add main lwp to gdb's thread list.
1936 * linux-thread-db.c (find_new_threads_callback): Also attach to
1937 already listed threads which thread_db didn't know about yet.
1938
710151dd
PA
19392008-03-25 Pedro Alves <pedro@codesourcery.com>
1940
1941 * linux-nat.c (drain_queued_events): Fix comment typo.
1942 (linux_nat_attach): In async mode, don't rely on storing a pending
1943 status. Instead place the wait status on the pipe.
1944 (linux_nat_resume): Remove unreacheable shortcut code in async
1945 mode.
1946 (stop_wait_callback): In async mode, don't store pending status.
1947 Instead, cancel breakpoints or resend the signal appropriatelly.
1948 (cancel_breakpoint): New, refactored from
1949 cancel_breakpoints_callback.
1950 (cancel_breakpoints_callback): Call cancel_breakpoint.
1951 (pipe_to_local_event_queue): Remove special token processing.
1952 (linux_nat_wait): Issue an internal error if a pending status is
1953 found in async mode.
1954
807bddf3
DJ
19552008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1956
1957 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
1958
c5b48eac
VP
19592008-03-24 Nick Roberts <nickrob@snap.net.nz>
1960 Vladimir Prus <vladimir@codesourcery.com>
1961
1962 * varobj.c (struct varobj_root): New component thread_id.
1963 (varobj_get_thread_id, check_scope): New functions.
1964 (c_value_of_root): Use check_scope. Switch to the
1965 proper thread if necessary.
1966
1967 * varobj.h (varobj_get_thread_id): New extern.
1968
1969 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
1970
12f4afab
DJ
19712008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
1972
1973 PR gdb/544
1974 * top.c: Revert 2008-03-21 changes.
1975
6208b47d
VP
19762008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1977
1978 * thread.c (make_cleanup_restore_current_thread): Make it
1979 globally visible.
1980 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
1981 * varobj.c (varobj_update): Don't save/restore frame.
1982 (c_value_of_root): Save/restore thread and frame here,
1983 using make_cleanup_restore_current_thread.
1984 * Makefile.in: Update dependecies.
1985
44a67aa7
VP
19862008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1987
1988 * varobj.c (struct varobj_root): Clarify
1989 comment on the frame field.
1990 (varobj_create): Don't set frame if we have no
1991 block.
1992
b562a0cb
DJ
19932008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1994
1995 PR gdb/544
1996 Suggested by Jan Kratochvil:
1997 * top.c (gdb_rl_operate_and_get_next_completion): Call
1998 rl_redisplay_function.
1999 (gdb_rl_redisplay): New.
2000 (init_main): Set rl_redisplay_function.
2001
ed1bd5f5
JB
20022008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
2003
2004 * aix-thread.c (pdc_read_regs): Fix compiler warning.
2005 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
2006 (store_regs_kernel_thread): Likewise.
2007
b84876c2
PA
20082008-03-21 Pedro Alves <pedro@codesourcery.com>
2009
2010 Linux native async support.
2011
2012 * target.h (struct target_ops): Delete to_async_mask_value and add
2013 to_async_mask.
2014 (target_is_async_p, target_async): Formatting.
2015 (target_async_mask_value): Delete.
2016 (target_async_mask): Delete function declaration, and add new
2017 target macro with the same name.
2018
2019 * target.c (update_current_target): Replace to_async_mask_value by
2020 to_async_mask. Default to_async_mask to return_one.
2021 (target_async_mask): Delete.
2022 (find_default_can_async_p, find_default_is_async_p): New.
2023 (init_dummy_target): register find_default_can_async_p and
2024 find_default_is_async_p on the dummy target.
2025
2026 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
2027 (debug_linux_nat_async): New global.
2028 (show_debug_linux_nat_async): New function.
2029 (linux_nat_async_enabled, linux_nat_async_mask_value)
2030 (linux_nat_event_pipe, linux_nat_num_queued_events)
2031 (linux_nat_async_events_enabled): New globals.
2032 (struct waitpid_result): New struct.
2033 (waitpid_queue): New global.
2034 (queued_waitpid, push_waitpid, drain_queued_events): New.
2035 (my_waitpid): Call queued_waitpid.
2036 (linux_child_follow_fork): Disable async events during the call.
2037 (blocked_mask): Delete.
2038 (sync_sigchld_action, async_sigchld_action): New globals.
2039 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
2040 async mode, block events during the call.
2041 (linux_nat_create_inferior): New.
2042 (linux_nat_attach): In sync mode, restore the mask states. In
2043 async mode, wake the event loop immediatelly.
2044 (detach_callback): Drain all queued events of the lwp we're
2045 detaching from.
2046 (linux_nat_detach): Block async mode, and drain events of the main
2047 process.
2048 (linux_nat_resume): If in async mode, mask async events during the
2049 call. If short circuiting, force event loop to wake up. If
2050 resuming, set target_executing, and register target events in the
2051 event loop.
2052 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
2053 (linux_nat_wait): In async mode, block events during the call.
2054 Only enable/disable passing SIGINT to the inferior in sync mode.
2055 Get events from local waitpid queue. If no interesting events was
2056 found, return to events loop. Reregister target events in the
2057 event loop on exit. In sync mode, no need to reblock SIGCHLD.
2058 (linux_nat_kill): Disable events on entry.
2059 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
2060 here. Detach async mode from the event loop if there are no more
2061 forks available, otherwise leave it on.
2062 (sigchld_handler): Assure this is called only in sync mode.
2063 (linux_async_permitted, linux_async_permitted_1): New globals.
2064 (set_maintenance_linux_async_permitted)
2065 (show_maintenance_linux_async_permitted): New functions.
2066 (linux_nat_is_async_p, linux_nat_can_async_p)
2067 (linux_nat_async_mask): New.
2068 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
2069 (get_pending_events, async_sigchld_handler): New.
2070 (linux_nat_async_events): New.
2071 (async_terminal_is_ours): New global.
2072 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
2073 (async_client_callback, async_client_context): New.
2074 (linux_nat_async_file_handler, linux_nat_async)
2075 (linux_nat_disable_async, linux_nat_enable_async): New.
2076 (linux_nat_add_target): Register linux_nat_create_inferior,
2077 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
2078 linux_nat_async_mask, linux_nat_terminal_inferior and
2079 linux_nat_terminal_ours.
2080 (_initialize_linux_nat): Remove local action variable, and update
2081 code that used it to use sync_sigchld_action. Add new
2082 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
2083 set/show command in the maintenance class. Add new "linux-async"
2084 maintenance set/show command. Block SIGCHLD by default. Setup
2085 async_sichld_action, and sync_sigchld_action. Install the default
2086 async mode.
2087 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
2088 the cancel signals.
2089
2090 * linux-thread-db.c (re_check_for_thread_db): New.
2091 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
2092 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
2093 (thread_db_async_mask): New.
2094 (init_thread_db_ops): Register thread_db_can_async_p,
2095 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
2096
2097 * remote.c (remote_async_mask_value): New.
2098 (remote_return_zero): New.
2099 (init_remote_ops): Register remote_return_zero as callbacks of
2100 to_can_async_p and to_is_async_p.
2101 (remote_can_async_p, remote_is_async_p, remote_async): Update to
2102 use remote_async_mask_value.
2103 (remote_async_mask): New.
2104 (init_remote_async_ops): Remove to_async_mask_value setting and
2105 register remote_async_mask as to_async_mask callback in
2106 remote_async_ops.
2107
2108 * Makefile.in (linux-nat.o): Update.
2109
17faa917
DJ
21102008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2111
2112 * gdbthread.h (add_thread_with_info): New.
2113 * linux-thread-db.c: Add some documentation.
2114 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
2115 (struct private_thread_info): Remove th_valid and ti_valid.
2116 Replace ti with tid.
2117 (thread_get_info_callback): Do not add TID to the new ptid. Do
2118 not cache th or ti.
2119 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
2120 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
2121 new PTID.
2122 (attach_thread): Handle an already-existing thread. Use
2123 add_thread_with_info. Cache the th and tid.
2124 (detach_thread): Verify that private was set. Remove verbose
2125 argument and printing. Update caller.
2126 (thread_db_detach): Do not adjust inferior_ptid.
2127 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
2128 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
2129 (thread_db_wait): Do not use lwp_from_thread.
2130 (thread_db_pid_to_str): Use the cached TID.
2131 (thread_db_extra_thread_info): Check that private is set.
2132 (same_ptid_callback): Delete.
2133 (thread_db_get_thread_local_address): Do not use it or check
2134 is_thread. Check that private is set. Assume that the thread
2135 handle is already cached.
2136 (init_thread_db_ops): Remove to_resume and to_kill.
2137 * thread.c (add_thread_with_info): New.
2138 (add_thread): Use it.
2139 * linux-nat.c (find_thread_from_lwp): Delete.
2140 (exit_lwp): Do not use it. Check print_thread_events. Print before
2141 deleting the thread.
2142 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
2143 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
2144 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
2145 printf_unfiltered for thread exits.
2146 * procfs.c (procfs_wait): Likewise.
2147
6214f497
DJ
21482008-03-21 Chris Demetriou <cgd@google.com>
2149
2150 * symtab.c (rbreak_command): Quote symbol name before passing
2151 it to break_command.
2152
63092375
DJ
21532008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2154
2155 * eval.c (evaluate_subexp_for_address): Clarify error message.
2156 Use value_must_coerce_to_target.
2157 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
2158 * valops.c (value_assign): Call value_coerce_to_target when
2159 assigning to anything but internalvars. Leave GDB-side arrays
2160 as arrays when assigning to internalvars.
2161 (value_must_coerce_to_target, value_coerce_to_target): New.
2162 (value_coerce_array, value_addr): Call value_coerce_to_target.
2163 (value_array): Create the array in GDB's memory instead of
2164 the inferior's.
2165 * value.h (value_must_coerce_to_target, value_coerce_to_target):
2166 Declare.
2167
b21991b0
DJ
21682008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2169
2170 * top.c (quit_confirm): Warn that we will kill the program.
2171
49a834f9
PA
21722008-03-19 Pedro Alves <pedro@codesourcery.com>
2173
2174 * inflow.c (terminal_ours_1): Guard access to
2175 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
2176
ae0d2f24
UW
21772008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
2178 Jim Blandy <jimb@codesourcery.com>
2179 Daniel Jacobowitz <drow@false.org>
2180
2181 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
2182 (dwarf2_read_address): Update prototype.
2183
2184 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
2185 (signed_address_type): Likewise.
2186 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
2187 (execute_stack_op): Update calls to unsigned_address_type,
2188 signed_address_type and dwarf2_read_address. Fix implementation
2189 of DW_OP_deref_size.
2190
2191 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
2192 (dwarf2_per_cu_addr_size): Likewise.
2193 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
2194 (struct dwarf2_loclist_baton): Likewise.
2195
2196 * dwarf2loc.c (find_location_expression): Update calls to
2197 dwarf2_read_address. Use dwarf2_per_cu_objfile and
2198 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
2199 (locexpr_describe_location): Likewise.
2200 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
2201 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
2202 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
2203 to dwarf2_per_cu_addr_size (per_cu).
2204 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
2205 (loclist_read_variable): Likewise.
2206 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
2207
2208 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
2209 instead of baton->objfile.
2210 (dwarf2_per_cu_obfile): New function.
2211 (dwarf2_per_cu_addr_size): Likewise.
2212
2213 * dwarf2-frame.c (struct comp_unit): Move higher.
2214 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
2215 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
2216 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
2217 parameter by using fde->eh_frame_p. Use read_encoded_value
2218 to implement DW_CFA_set_loc.
2219 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
2220 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
2221 execute_stack_op and execute_cfa_program.
2222 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
2223 (size_of_encoded_value): Remove.
2224 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
2225 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
2226 (add_cie): Set cie->unit backlink.
2227 (decode_frame_entry_1): Set cie->addr_size. Update calls to
2228 read_encoded_value.
2229 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
2230
1c8201d1
MD
22312008-03-17 Markus Deuling <deuling@de.ibm.com>
2232
2233 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
2234 gdbarch_bfd_arch_info.
2235
46bba1ef
JB
22362008-03-17 Joel Brobecker <brobecker@adacore.com>
2237
2238 * aix-thread.c (pdc_read_regs): Minor reformatting.
2239
0bcd3e20
VP
22402008-03-17 Vladimir Prus <vladimir@codesourcery.com>
2241
2242 * thread.c (print_thread_info): Don't insist
2243 on having current thread if there are no
2244 threads at all.
2245
9356cf8d
PA
22462008-03-17 Pedro Alves <pedro@codesourcery.com>
2247
2248 * infcmd.c (attach_command_post_wait)
2249 (attach_command_continuation): New.
2250 (attach_command): Support background async execution, and async
2251 execution in synchronous mode.
2252
5c3ce3f7
DJ
22532008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
2254
2255 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
2256 * symmisc.c (dump_symtab_1): Likewise.
2257 * wrapper.c (gdb_value_struct_elt): Likewise.
2258
fa2c6a57
PA
22592008-03-17 Pedro Alves <pedro@codesourcery.com>
2260
2261 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
2262
02f3fc28
PA
22632008-03-17 Pedro Alves <pedro@codesourcery.com>
2264
2265 * linux-nat.c (linux_nat_filter_event): New, refactored from
2266 linux_nat_wait.
2267 (linux_nat_wait): Call linux_nat_filter_event.
2268
2f77b315
UW
22692008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
2270
2271 * top.c (execute_command): Fix uninitialized variable error.
2272
f01be29b
NH
22732008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
2274
2275 * Makefile.in (amd64nbsd-nat.o): New dependency.
2276 * amd64nbsd-nat.c: Include "nbsd-nat.h".
2277 (_initialize_amd64nbsd_nat): Update target vector to use
2278 nbsd_pid_to_exec_file.
2279 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
2280
6cf32704
VP
22812008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2282
2283 Remove ignoring leading exec events code.
2284 * fork-child.c (startup_inferior): Do not set
2285 inferior_ignoring_leading_exec_events.
2286 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
2287 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
2288 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
2289 (handle_inferior_event): Remove code for ignoring leading exec
2290 events.
2291 * target.c (update_current_target): Do not inherit, or default,
2292 to_reported_exec_events_per_exec_call.
2293 (debug_to_reported_exec_events_per_exec_call): Remove.
2294 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
2295 * target.h (target_reported_exec_events_per_exec_call): Remove.
2296 (struct target): Remove the to_reported_exec_events_per_exec_call
2297 field.
2298
8e8901c5
VP
22992008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2300
2301 Implement -thread-info.
2302 * gdbthread.h (print_thread_info): Declare.
2303
2304 * thread.c (print_thread_info): New, extracted
2305 from info_threads_command and adjusted to
2306 work for CLI and MI.
2307 (info_threads_command): Use print_thread_info.
2308 * Makefile.in: Update dependencies.
2309
2310 * mi/mi-cmds.c (mi_cmds): Specify a handler
2311 for -thread-info.
2312 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
2313 * mi/mi-main.c (mi_cmd_thread_info): New.
2314 (mi_cmd_list_features): Include 'thread-info'.
2315
7d1e6fb8
KB
23162008-03-14 Kevin Buettner <kevinb@redhat.com>
2317
2318 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
2319 to decide whether to match instruction patterns using "sw" and "sd".
2320
89113898
PA
23212008-03-14 Pedro Alves <pedro@codesourcery.com>
2322
2323 * infcmd.c (jump_command): Postpone disabling stdin until after
2324 the possible query.
2325
64a0ac84
PA
23262008-03-14 Pedro Alves <pedro@codesourcery.com>
2327
2328 * inflow.c (gdb_getpgrp): New.
2329 (gdb_has_a_terminal): Use get_getpgrp.
2330 (terminal_ours_1): If attach_flag is set, don't refetch
2331 inferior_process_group.
2332
1fddbabb
PA
23332008-03-14 Pedro Alves <pedro@codesourcery.com>
2334
2335 * features/library-list.dtd: Allow "section" elements as children
2336 of "library". Add "section" element and describe its attributes.
2337
2338 * solib-target.c (struct lm_info): Add section_bases member.
2339 (library_list_start_segment): Error out if seen a section element.
2340 (library_list_start_section): New.
2341 (library_list_end_library): New.
2342 (solib_target_free_library_list): Free section_bases.
2343 (section_attributes): New.
2344 (library_children): Make "segment" optional. Add "section" child.
2345 (library_list_children): Register library_list_end_library.
2346 (solib_target_relocate_section_addresses): Handle section bases.
2347
2348 * NEWS: Mention new qXfer:libraries:read section offsets support.
2349
712af3be
VP
23502008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2351
2352 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
2353 (make_exec_error_cleanup): Remove declarations.
2354 * utils.c (exec_error_cleanup_chain): Remove.
2355 (do_exec_error_cleanups, discard_exec_error_cleanups)
2356 (make_exec_error_cleanup): Remove.
2357 * event-loop.c (start_event_loop): Adjust call to
2358 async_enable_stdin.
2359 * event-top.c (async_enable_stdin): Remove the paramater dummy.
2360 (async_disable_stdin): Don't register async_enable_stdin via
2361 cleanup.
2362 * inf-loop.c (inferior_event_handler): Don't
2363 call do_exec_error_cleanups. Call async_enable_stdin instead.
2364 * event-loop.c (start_event_loop): Adjust call to
2365 async_enable_stdin.
2366 * tui/tui-interp.c (tui_command_loop): Adjust call to
2367 async_enable_stdin.
2368
32c1e744
VP
23692008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2370
2371 Async mode fixes.
2372 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
2373 * breakpoint.c (bpstat_do_actions): In async mode,
2374 don't jump to top expecting stop_bpstat to be already
2375 updated.
2376 * event-loop.c (start_event_loop): Call async_enable_stdin
2377 on exception.
2378 * event-top.c (async_enable_stdin): Do nothing if sync_execution
2379 is not set.
2380 (command_handler): Do not setup continuation here.
2381 (command_line_handler_continuation): Move to...
2382 * top.c (command_line_handler_continuation): ... here.
2383 (execute_command): In async mode, register continuation.
2384 Don't check frame's language in running in async mode.
2385 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
2386 * inf-loop.c (complete_execution): Inline into...
2387 (inferior_event_handler): ... here. Clear target_executing before
2388 doing any cleanups. Don't try to show prompt if the target was
2389 resumed.
2390 * infcmd.c (signal_command): Add support for async mode.
2391 (finish_command): Only add continuation if the target was
2392 successfully resumed.
2393 * remote.c (init_async_opts): Register to_get_thread_local_address
2394 handler.
2395 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
2396 with sync_execution.
2397 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
2398 on exception.
2399
c04ea773
DJ
24002008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2401
2402 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
2403 * exec.c (exec_bfd_mtime): Define.
2404 (exec_close): Clear it.
2405 (exec_file_attach): Set it.
2406 * gdbcore.h (exec_bfd_mtime): Declare.
2407 * source.c (find_source_lines): Do not use bfd_get_mtime.
2408
952dc227
VP
24092008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2410
2411 * top.c (simplified_command_loop): Remove.
2412
4cf46804
VP
24132008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2414
2415 Remove unused remote.c hooks.
2416 * remote.c (deprecated_target_resume_hook)
2417 (deprecated_target_wait_loop_hook): Remove.
2418 (remote_resume): Do not call deprecated_target_resume_hook.
2419 (remote_wait): Do not call deprecated_target_wait_loop_hook.
2420 (remote_async_wait): Likewise.
2421
683f2885
VP
24222008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2423
2424 Implement MI notification for new threads.
2425 * doc/observer.texi (new_thread): Document.
2426 * observer.sh: Forward declare struct thread_info.
2427 * thread.c (add_thread): Notify observer.
2428
2429 * interps.h (interp_init_ftype): New parameter
2430 top_level.
2431 (interp_set): Likewise.
2432 (top_level_interpreter_data): Declare.
2433 * interps.c (interp_set): New parameter top_level.
2434 Pass it to interpreter's init function. Remember
2435 top level interpreter.
2436 (interpreter_exec_cmd): Adjust.
2437 (top_level_interpreter_data): New.
2438 * main.c (captured_main): Pass 1 for top_level
2439 parameter of interp_set.
2440 * cli/cli-interp.c (cli_interpreter_init): New
2441 parameter top_level.
2442 * tui/tui-interp.c (tui_init): New parameter top_level.
2443
2444 * mi/mi-interp.c (mi_new_thread): New.
2445 (mi_interpreter_init): If top level, register
2446 observer for new threads.
2447
2448 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
2449
ff9b3928
PA
24502008-03-14 Pedro Alves <pedro@codesourcery.com>
2451
2452 * top.c (execute_command): Disable break and stop
2453 commands in async mode.
2454
b18392ef
PA
24552008-03-14 Pedro Alves <pedro@codesourcery.com>
2456
2457 revert:
2458 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2459 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2460 Call target_stop in the INF_QUIT_REQ case.
2461 * Makefile.in (inf-loop.o): Update.
2462
0aca9f07
PA
24632008-03-14 Pedro Alves <pedro@codesourcery.com>
2464
2465 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2466 Call target_stop in the INF_QUIT_REQ case.
2467 * Makefile.in (inf-loop.o): Update.
2468
0b4e556c
PA
24692008-03-14 Pedro Alves <pedro@codesourcery.com>
2470
2471 * top.c (execute_command): Enable break, info and interrupt
2472 commands in async mode.
2473
8defab1a
DJ
24742008-03-13 Vladimir Prus <vladimir@codesourcery.com>
2475 Daniel Jacobowitz <dan@codesourcery.com>
2476
2477 * breakpoint.h (breakpoint_restore_shadows): New
2478 declaration.
2479 * breakpoint.c (breakpoint_restore_shadows): New.
2480 (read_memory_nobpt): Delete.
2481 * gdbcore.h (read_memory_nobpt): Delete declaration.
2482 * target.c (memory_xfer_partial): Call
2483 breakpoint_restore_shadows.
2484 (restore_show_memory_breakpoints)
2485 (make_show_memory_beakpoints_cleanup): New.
2486 (show_memory_breakpoints): New.
2487 * target.h (make_show_memory_beakpoints_cleanup): Declare.
2488 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
2489 Make sure we see memory breakpoints when checking if
2490 breakpoint is still there.
2491 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
2492 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
2493 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
2494 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
2495
fd532e2e
PA
24962008-03-12 Pedro Alves <pedro@codesourcery.com>
2497
2498 * thread.c (add_thread): Use printf_unfiltered to print.
2499
f749779f 25002008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
2501
2502 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
2503 that is true only on x86-solaris and x86_64-solaris.
2504 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
2505 with proc_get_LDT_entry.
2506
25072008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
2508
2509 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
2510 * config.in, configure: Regenerate.
2511 * fork-child.c (fork_inferior): Call create_tty_session.
2512 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
2513 (create_tty_session): New function.
2514 * terminal.h: Declare create_tty_session.
2515
4fbb74a6
AM
25162008-03-12 Alan Modra <amodra@bigpond.net.au>
2517
2518 PR 5900
2519 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
2520 * mipsread.c: Include elf/internal.h.
2521 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
2522 to internal range.
2523
20a6ec49
MD
25242008-03-11 Markus Deuling <deuling@de.ibm.com>
2525
2526 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
2527 to get at the current architecture and at the target specific vector.
2528 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
2529 remove define of I387_ST0_REGNUM.
2530
2531 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
2532
2533 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
2534 get at the current architecture
2535 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
2536 parameter.
2537
2538 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
2539 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
2540
2541 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
2542 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
2543 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
2544
2545 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
2546 at the target specific vector.
2547
2548 (i386_get_longjmp_target): Use get_frame_arch to get at the current
2549 architecture. Use gdbarch_tdep to get at the target specific vector.
2550
2551 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
2552 update caller. Use gdbarch_tdep to get at the target specific vector.
2553
2554 (i386_register_to_value: Use get_frame_arch to get at the current
2555 architecture.
2556
2557 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
2558 parameter.
2559
2560 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2561 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
2562 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
2563 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
2564
2565 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
2566 undef's.
2567
2568 (i387_convert_register_p, i387_register_to_value,
2569 i387_value_to_register): Update call for i386_fp_regnum_p.
2570
2571 * i387-tdep.h: Remove comment.
2572 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
2573 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2574 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
2575 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
2576 I387_MXCSR_REGNUM): Add target specific vector as parameter.
2577
ccd213ac
DJ
25782008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
2579
2580 * Makefile.in (fork-child.o): Update.
2581 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
2582 argument. Gather all gdbserver features together.
2583 * fork-child.c (exec_wrapper): New variable.
2584 (fork_inferior): Use it.
2585 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
2586 (unset_exec_wrapper_command, _initialize_fork_child): New.
2587
25882008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
2589
2590 * source.c (directory_command): Modify the determination of
2591 condition of terminal "from_tty".
2592
22566fbd
DJ
25932008-03-10 Matt Rice <ratmice@gmail.com>
2594
2595 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
2596
9971ac47
UW
25972008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2598
2599 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
2600 of the data passing to strtoulst function.
2601 (info_spu_signal_command): Likewise.
2602
835670cf
VP
26032008-03-08 Vladimir Prus <vladimir@codesourcery.com>
2604
2605 * mi/mi-interp.c (mi_command_loop): Remove
2606 commented-out code.
2607
be86555c
JB
26082008-03-07 Joel Brobecker <brobecker@adacore.com>
2609
2610 * remote.c (extended_remote_attach_1): Make local variable pid an int
2611 instead of a pid_t.
2612
4d7b2d5b
JB
26132008-03-07 Joel Brobecker <brobecker@adacore.com>
2614
2615 * solib-svr4.c (svr4_same_1): New function, originally extracted
2616 from svr4_same and expanded to handle the sparc64 case.
2617 (svr4_same): Move up and reimplement using svr4_same_1.
2618 (enable_break): Use svr4_same_1 to do shared library name comparisons.
2619
61fed90e
RR
26202008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
2621
2622 * MAINTAINERS: Move self to Paper trail.
2623
b803fb0f
DJ
26242008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
2625
2626 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
2627 * event-loop.c (call_async_signal_handler): New.
2628 * event-loop.h (call_async_signal_handler)
2629 (gdb_call_async_signal_handler): Declare.
2630 (mark_async_signal_handler): Add comments.
2631 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
2632 * mingw-hdep.c (sigint_event, sigint_handler): New.
2633 (gdb_select): Use them. Wait for the readline signal handler
2634 to finish.
2635 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
2636 * posix-hdep.c (gdb_call_async_signal_handler): New function.
2637 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
2638 New.
2639 (remote_fileio_ctrl_c_signal_handler): Use
2640 gdb_call_async_signal_handler.
2641 (initialize_remote_fileio): Initialize sigint_fileio_token.
2642 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
2643 not initialize tokens here.
2644 (handle_remote_sigint_twice): Likewise. Reinstall
2645 handle_remote_sigint.
2646 (async_remote_interrupt_twice): Just call interrupt_query.
2647 (cleanup_sigint_signal_handler): Do not delete tokens.
2648 (remote_interrupt, remote_interrupt_twice): Use
2649 gdb_call_async_signal_handler.
2650 (interrupt_query): Reinstall the default signal handler.
2651 (_initialize_remote): Initialize tokens here.
2652
8f4d54ed
JB
26532008-03-04 Joel Brobecker <brobecker@adacore.com>
2654
2655 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
2656 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2657 Change the type of the lr register to code_ptr.
2658 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2659 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2660 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2661 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2662 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2663 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2664 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
2665
95ece428
JW
26662008-03-03 James E. Wilson <wilson@tuliptree.org>
2667
2668 * MAINTAINERS: Update my email address.
2669
686a5eed
KS
26702008-03-03 Keith Seitz <keiths@redhat.com>
2671
2672 From Dave Murphy <davem@devkitpro.org>:
2673 * configure.ac: Set tcl configdir to win under mingw.
2674 * configure: Regenerate.
2675
fa4727a6
DJ
26762008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2677
2678 * breakpoint.c (fetch_watchpoint_value): New function.
2679 (update_watchpoint): Set and clear val_valid. Use
2680 fetch_watchpoint_value. Handle unreadable values on the
2681 value chain. Correct check for user-requested array watchpoints.
2682 (breakpoint_init_inferior): Clear val_valid.
2683 (watchpoint_value_print): New function.
2684 (print_it_typical): Use it. Do not free or clear old_val. Print
2685 watchpoints even if old_val == NULL.
2686 (watchpoint_check): Use fetch_watchpoint_value. Check for values
2687 becoming readable or unreadable.
2688 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
2689 (do_enable_watchpoint): Likewise.
2690 * breakpoint.h (struct breakpoint): Update comment for val. Add
2691 val_valid.
2692 * NEWS: Mention watchpoints on inaccessible memory.
2693
c03374d5
DJ
26942007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
2695
2696 * Makefile.in (i386-nat.o): Update.
2697 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
2698 i386_use_watchpoints.
2699 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
2700 i386_use_watchpoints.
2701 * i386-nat.c (i386_stopped_data_address): Take two arguments.
2702 (i386_stopped_by_watchpoint): Update call.
2703 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
2704 * config/i386/nm-i386.h: Conditionalize definitions on
2705 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
2706 (i386_use_watchpoints): Declare.
2707 (i386_stopped_data_address): Update.
2708 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2709 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2710
c24d7425 27112008-02-29 Joel Brobecker <brobecker@adacore.com>
2712
2713 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
2714 * version.in: Bump version to 6.8.50.20080229-cvs.
2715
a7dfd010
MD
27162008-02-28 Markus Deuling <deuling@de.ibm.com>
2717
2718 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
2719 properly.
2720
258c00cc
TT
27212008-02-28 Tom Tromey <tromey@redhat.com>
2722
2723 * infcmd.c (notice_args_read): Print result of get_inferior_args.
2724
8edfe269
DJ
27252008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2726
2727 * infcmd.c (kill_if_already_running): Make static. Use
2728 target_require_runnable.
2729 * target.c (target_require_runnable): New.
2730 * target.h (target_require_runnable): Declare.
2731
0d6ba1b1
DJ
27322008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2733
2734 * frame.c (reinit_frame_cache): Only annotate if frames were
2735 previously valid.
2736
6fe305f7
UW
27372008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2738
2739 * regformats/reg-ppc.dat: Rename "ps" to "msr".
2740 * regformats/reg-ppc64.dat: Likewise.
2741
9b4b61c8
UW
27422008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2743
2744 * features/Makefile (%.dat): Emit xmltarget statement.
2745
2746 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
2747 Generate code to set gdbserver_xmltarget in init_registers_${name}.
2748
2749 * regformats/arm-with-iwmmxt.dat: Regenerate.
2750 * regformats/mips64-linux.dat: Regenerate.
2751 * regformats/mips-linux.dat: Regenerate.
2752 * regformats/rs6000/powerpc-32.dat: Regenerate.
2753 * regformats/rs6000/powerpc-64.dat: Regenerate.
2754 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2755
2756 * regformats/reg-arm.dat: Add xmlarch statement.
2757 * regformats/reg-i386.dat: Likewise.
2758 * regformats/reg-i386-linux.dat: Likewise.
2759 * regformats/reg-x86-64-linux.dat: Likewise.
2760 * regformats/reg-spu.dat: Likewise.
2761
20b4711e
DJ
27622008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2763
2764 * remote.c (remote_wait, remote_async_wait): Stop if we receive
2765 an error.
2766
1843f87b
DJ
27672008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2768
2769 * utils.c (debug_timestamp): New.
2770 (vfprintf_unfiltered): Print timestamps if requested.
2771 (show_debug_timestamp): New.
2772 (initialize_utils): Register "set debug timestamp".
2773 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2774
6a048695
JB
27752008-02-27 Joel Brobecker <brobecker@adacore.com>
2776
2777 * breakpoint.c (skip_prologue_sal): New function.
2778 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2779 computed from a line number.
2780
0b998f49
JB
27812008-02-27 Joel Brobecker <brobecker@adacore.com>
2782
2783 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2784 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2785 Set PC register type to "code_ptr".
2786 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2787 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2788 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2789 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2790 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2791 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2792 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2793 Regenerate.
2794
d05b4ac3
UW
27952008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2796
2797 * regformats/regdat.sh: Rename init_registers function in
2798 generated file to init_registers_${name}.
2799
2800 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2801 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2802 * regformats/reg-s390x.dat: Set "name" to s390x.
2803
a5d9d57d
DJ
28042008-02-26 Greg Law <glaw@undo-software.com>
2805
2806 * regcache.c (registers_changed): Call reinit_frame_cache.
2807
e25c958c
DJ
28082008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2809
2810 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2811 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2812 and svr4_fetch_objfile_link_map.
2813 * Makefile.in (sh-linux-tdep.o): Update.
2814
5daa78cc
TJB
28152008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2816
2817 * amd64-tdep.c (amd64_classify): Add support for decimal float
2818 types.
2819 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2820 use the struct return convention.
2821
54e52265
VP
28222008-02-26 Nick Roberts <nickrob@snap.net.nz>
2823
2824 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2825 to old format. Discard breakpoint address if shared library is
2826 unloaded.
2827 (breakpoint_1): Adjust formatting of table header accordingly.
2828
d8f2712d
VP
28292008-02-25 Vladimir Prus <vladimir@codesourcery.com>
2830
2831 * remote.c (remote_get_threadlist): If the response
2832 is empty, don't try to parse it.
2833
05ce04a4
VP
28342008-02-23 Vladimir Prus <vladimir@codesourcery.com>
2835
2836 Unbreak 'target async'.
2837 * serial.c (serial_async): Set the
2838 handler function before enabling async
2839 mode.
2840
b36ec657
DJ
28412008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
2842
2843 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2844
df7df359
PA
28452008-02-21 Pedro Alves <pedro@codesourcery.com>
2846
2847 * remote.c (extended_remote_attach_1): Set attach_flag.
2848 (extended_remote_create_inferior_1): Clear attach_flag.
2849
7cd25cfc
DJ
28502008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2851
2852 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
2853 r_brk_offset.
2854 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2855 * solib-svr4.c (solib_svr4_r_brk): New.
2856 (open_symbol_file_object, svr4_current_sos): Always check the
2857 debug base.
2858 (svr4_fetch_objfile_link_map): Do not set debug_base.
2859 (enable_break): Use r_brk if it is set.
2860 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
2861 (svr4_lp64_fetch_link_map_offsets): Likewise.
2862 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2863
07ea644b
MD
28642008-02-20 Markus Deuling <deuling@de.ibm.com>
2865 Mark Kettenis <kettenis@gnu.org>
2866
2867 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
2868 trad_frame_saved_reg.
2869 (trad-frame.h): New include.
2870
2871 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
2872 instead of frame_obstack_zalloc.
2873 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
2874
2875 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2876
40887e1a
MD
28772008-02-20 Markus Deuling <deuling@de.ibm.com>
2878
2879 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
2880 from disassemble_info instead of gdbarch_byte_order.
2881
2882 * mips-tdep.c (gdb_print_insn_mips): Likewise.
2883 * arm-tdep.c (gdb_print_insn_arm): Likewise.
2884
ae4b2284
MD
28852008-02-20 Markus Deuling <deuling@de.ibm.com>
2886
2887 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
2888 gdbarch as parameter.
2889
2890 * gdbarch.{c,h}: Regenerate.
2891
2892 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2893 parameter.
2894 * mem-break.c (default_memory_insert_breakpoint)
2895 (default_memory_remove_breakpoint): Likewise.
2896 * target.h (default_memory_remove_breakpoint)
2897 (default_memory_insert_breakpoint): Likewise.
2898
2899 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2900 parameter. Replace current_gdbarch by gdbarch.
2901 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2902 (m32r_memory_remove_breakpoint): Likewise.
2903
d9bf65d5
DJ
29042008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
2905
2906 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
2907
b93b6ca7
JB
29082008-02-19 Joel Brobecker <brobecker@adacore.com>
2909
2910 * NEWS: Add entry describing Add support improvements.
2911
4ed226fe
MD
29122008-02-18 Markus Deuling <deuling@de.ibm.com>
2913
2914 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
2915 M68K_FP0_REGNUM.
2916
caaa79ad
MD
29172008-02-18 Markus Deuling <deuling@de.ibm.com>
2918
2919 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
2920 register_offset_hack anymore.
2921
2922 * regcache.{c,h} (register_offset_hack): Remove.
2923
e38c262f
MD
29242008-02-18 Markus Deuling <deuling@de.ibm.com>
2925
2926 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
2927
2928 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
2929 current_gdbarch by gdbarch.
2930 (hppa64_hpux_find_global_pointer): Likewise.
2931 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
2932 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
2933 find_global_pointer.
2934
2935 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
2936 parameter.
2937 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2938
2939 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
2940 of gdbarch_num_regs.
2941
2942 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
2943 replace current_gdbarch by gdbarch.
2944 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2945
206988c4
MD
29462008-02-18 Markus Deuling <deuling@de.ibm.com>
2947
2948 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
2949 and replace current_gdbarch by gdbarch.
2950
2951 (store_register): Update call for exec_one_dummy_insn.
2952 (fetch_register, store_register): Update call of regmap.
2953
2954 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
2955 parameter and replace current_gdbarch by gdbarch.
2956
2957 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
2958 the current architecture. Update call for getregs_supplies and
2959 getfpregs_supplies.
2960 (ppcnbsd_fetch_inferior_registers): Likewise.
2961
2962 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
2963 replace current_gdbarch by gdbarch.
2964 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
2965 get_regcache_arch to get at the current architecture. Update call for
2966 getfpregs_supplies.
2967
f642be6b
MD
29682008-02-18 Markus Deuling <deuling@de.ibm.com>
2969
2970 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
2971 variables.
2972
b1f2bf01
MD
29732008-02-15 Markus Deuling <deuling@de.ibm.com>
2974
2975 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2976
ee163bf5
VP
29772008-02-14 Vladimir Prus <vladimir@codesourcery.com>
2978
2979 * NEWS: Mention pending breakpints in MI.
2980
f6fbcbf9
MD
29812008-02-14 Markus Deuling <deuling@de.ibm.com>
2982
2983 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
2984
36af4ef6
MD
29852008-02-13 Markus Deuling <deuling@de.ibm.com>
2986
2987 Add script to build and test GDB using enable-targets=all.
2988
2989 * gdb_buildall.sh: New file.
2990
94a0e877
MG
29912008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
2992
2993 * NEWS (New native configurations): Xtensa GNU/Linux.
2994 (New targets): Xtensa GNU/Linux.
2995 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2996 xtensa-linux-tdep.o
2997 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2998 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2999 * configure.tgt (xtensa*-*-linux*): New entry.
3000 * xtensa-config.c (xtensa_tdep): New variable.
3001 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
3002 (rmap): Change format based on new macro XTREG.
3003 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
3004 * xtensa-linux-nat.c: New.
3005 * xtensa-linux-tdep.c: New.
3006 * xtensa-xtregs.c: New.
3007 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
3008 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
3009 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
3010 (xtensa_register_t): New field coprocessor.
3011 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
3012 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
3013 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
3014 Update to handle privileged registers.
3015 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
3016 (xtensa_push_dummy_call): Set windowstart register correctly.
3017 (call0_analyze_prologue): Initialize xtensa_default_isa.
3018 (xtensa_derive_tdep): New.
3019 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
3020 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
3021 Call xtensa_derive_tdep().
3022 * config/xtensa/linux.mh: New.
3023 * regformats/reg-xtensa.dat: New.
3024
b7ee1b0a 30252008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
3026
3027 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
3028 (filenames.h): New include.
3029 * Makefile.in (corelow.o): Add dependency for filenames.h.
3030
8da2a1df
DJ
30312008-02-08 Doug Evans <dje@google.com>
3032
3033 * source.c (find_and_open_source): Always rewrite absolute filenames.
3034
776592bf
DE
30352008-02-07 Doug Evans <dje@google.com>
3036
3037 * breakpoint.c: #include "hashtab.h".
3038 (ambiguous_names_p): New fn.
3039 (update_breakpoint_locations): When restoring bp enable status, don't
3040 compare function names if any functions have same name.
3041 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
3042
d6565258
JB
30432008-02-07 Joel Brobecker <brobecker@adacore.com>
3044
3045 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
3046 instead of just a VEC*. Update use of SV.
3047 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
3048
6d53d0af
JB
30492007-02-07 Joel Brobecker <brobecker@adacore.com>
3050
3051 * NEWS: Put all new commands since gdb-6.7 together.
3052
2ba95b9b
JB
30532007-02-07 Joel Brobecker <brobecker@adacore.com>
3054
3055 * ada-lang.c: #include "vec.h".
3056 (struct string_vector, new_string_vector, string_vector_append):
3057 Delete.
3058 (char_ptr): New typedef.
3059 (DEF_VEC_P (char_ptr)): New VEC type.
3060 (symbol_completion_add): Update profile to take the new VEC type
3061 instead of the old string_vector structure. Update code accordingly.
3062 (ada_make_symbol_completion_list): Use the new VEC type instead of
3063 the old string_vector structure, and update the code accordingly.
3064 * Makefile.in (ada-lang.o): Add dependency on vec.h.
3065
4ae0885a
PM
30662008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3067
3068 * p-exp.y: Set current_type in missing places.
3069 (leftdiv_is_integer): New static variable.
3070 Typecast right operand of BINOP_DIV to long_double if both operands
3071 are integers.
3072
06b1d59c
MR
30732008-02-06 Maciej W. Rozycki <macro@mips.com>
3074
3075 * remote-mips.c (set_breakpoint): Rename to...
3076 (mips_set_breakpoint): ... this.
3077 (clear_breakpoint): Rename to...
3078 (mips_clear_breakpoint): ... this.
3079 (common_breakpoint): Rename to...
3080 (mips_common_breakpoint): ... this.
3081 (check_lsi_error): Rename to...
3082 (mips_check_lsi_error): ... this.
3083
41d27058
JB
30842007-02-05 Joel Brobecker <brobecker@adacore.com>
3085
3086 * language.h (struct language_defn): Add new field
3087 la_make_symbol_completion_list.
3088 * symtab.c (default_make_symbol_completion_list): Renames
3089 make_symbol_completion_list.
3090 (make_symbol_completion_list): New function.
3091 * symtab.h (default_make_symbol_completion_list): Add declaration.
3092 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
3093 (auto_language, local_language): Likewise.
3094 * objc-lang.c (objc_language_defn): Likewise.
3095 * scm-lang.c (scm_language_defn): Likewise.
3096 * m2-lang.c (m2_language_defn): Likewise.
3097 * f-lang.c (f_language_defn): Likewise.
3098 * jv-lang.c (java_language_defn): Likewise.
3099 * p-lang.c (pascal_language_defn): Likewise.
3100 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
3101 (minimal_language_defn): Likewise.
3102 * ada-lang.c (struct string_vector): New structure.
3103 (new_string_vector, string_vector_append, ada_unqualified_name)
3104 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
3105 (ada_make_symbol_completion_list): New functions.
3106 (ada_language_defn): Set la_make_symbol_completion_list.
3107 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
3108 this function is static.
3109
ee3a2f01
KB
31102008-02-05 Kevin Buettner <kevinb@redhat.com>
3111
3112 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
3113 to account for call site optimizations.
3114
d844e34b
JB
31152008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
3116
3117 * tracepoint.c (read_actions): Handle end-of-text indicator
3118 in action list properly. (Committed by Jim Blandy)
3119
02e4669d
JB
31202008-02-05 Jim Blandy <jimb@red-bean.com>
3121
3122 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
3123 pseudoregister, not an internal error.
85ecb32b 3124 Reported by: Andrzej Zaborowski
02e4669d 3125
c39c8256
VP
31262008-02-04 Vladimir Prus <vladimir@codesourcery.com>
3127
3128 * varobj.c (c_value_of_variable): Use xstrdup.
3129
ae7d22a6
VP
31302008-02-04 Vladimir Prus <vladimir@codesourcery.com>
3131
3132 Update stored rendition of varobj value when format changes.
3133 * varobj.c (varobj_set_display_format): Recomputed
3134 print_value.
3135 (c_value_of_variable): Return print_value.
3136
81fe8080
DE
31372008-02-03 Doug Evans <dje@google.com>
3138
301f0ecf
DE
3139 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
3140 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
3141 * valops.c (value_one): New function.
3142 * value.h (value_one): Declare.
3143
3144 Fix argument promotion for binary arithmetic ops for C.
3145 * valarith.c (unop_result_type): New fn.
3146 (binop_result_type): New fn.
3147 (value_binop): Move result type computation to binop_result_type.
3148 (value_pos, value_neg, value_complement): Move result type
3149 computation to unop_result_type.
3150
81fe8080
DE
3151 PR 2384
3152 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
3153 Return basetype, fieldno if found. All callers updated.
3154 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
3155 objfile.
3156 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
3157 * symfile.h (fill_in_vptr_fieldno): Delete.
3158
41808ebe
DE
31592008-02-02 Doug Evans <dje@google.com>
3160
f8597ac3
DE
3161 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
3162
41808ebe
DE
3163 * typeprint.c (*): Whitespace cleanup.
3164
f964a756
MK
31652008-02-02 Mark Kettenis <kettenis@gnu.org>
3166 Luis Machado <luisgpm@br.ibm.com>
3167 Thiago Jung Bauermann <bauerman@br.ibm.com>
3168
3169 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
3170 don't fit into registerson the stack the way GCC does.
3171
b06ead72
JB
31722008-02-01 Joel Brobecker <brobecker@adacore.com>
3173
3174 * symtab.c (symbol_set_names): Do not add an entry in the demangling
3175 hash table for Ada symbols. Just store the linkage name as is,
3176 and leave the demangled_name as NULL.
3177
2cfa0c8d
JB
31782007-02-01 Joel Brobecker <brobecker@adacore.com>
3179
3180 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
3181 in the global scope.
3182 (new_symbol): Likewise.
3183
98deb0da
VP
31842008-02-01 Vladimir Prus <vladimir@codesourcery.com>
3185
3186 * breakpoint.c (break_command_1): Return void.
3187 (break_command_really): Return void. Rethrow
3188 exceptions instead of returning.
3189 (gdb_breakpoint): Remove the error_message parameter.
3190 Return void. Rename to set_breakpoint.
3191 * gdb.h (gdb_breakpoint): Rename and move to...
3192 * breakpoint.h (set_breakpoint): ...here.
3193 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
3194 event hooks even if exception is thrown. Adjust to
3195 gdb_breakpoint interface changes.
3196
3197
ce0451ad
TJB
31982008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
3199
3200 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
3201 float in both first and second word in the doubleword, to support
3202 old and new ABIs.
3203
723a2275
VP
32042008-02-01 Vladimir Prus <vladimir@codesourcery.com>
3205
3206 Properly rethrow exception. This fixes errors
3207 about non-existent functions for -break-insert.
3208 * breakpoint.c (break_command_really): Use throw_exception
3209 for rethrowing. If rethrowing, don't print the exception.
3210
d64a946d
TJB
32112008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3212
3213 * NEWS: Mention Decimal Floating Point support.
3214
02b156f5
JB
32152008-01-31 Joel Brobecker <brobecker@adacore.com>
3216
3217 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
3218 value type to builtin_type_void_func_ptr.
3219
a16b8bcd
UW
32202008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
3221
3222 * s390-tdep.c (is_float_singleton, is_float_like,
3223 alignment_of, s390_return_value): Make checks for
3224 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
3225
f949c649
TJB
32262008-01-31 Luis Machado <luisgpm@br.ibm.com>
3227 Thiago Jung Bauermann <bauerman@br.ibm.com>
3228
3229 * infcmd.c (default_print_registers_info): Also print hex
3230 raw contents for TYPE_CODE_DECFLOAT registers.
3231 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
3232 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
3233 (rs6000_register_name): Add support for DFP pseudo-registers.
3234 (rs6000_pseudo_register_type): Likewise.
3235 rs6000_pseudo_register_reggroup_p): Likewise.
3236 (ppc_pseudo_register_read): New function.
3237 (ppc_pseudo_register_write): Likewise.
3238 (rs6000_pseudo_register_read): Likewise.
3239 (rs6000_pseudo_register_write): Likewise.
3240 (e500_pseudo_register_read): Move checks to
3241 rs6000_pseudo_register_read.
3242 (e500_pseudo_register_write): Move checks to
3243 rs6000_pseudo_register_write.
3244 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
3245 rs6000_pseudo_register_read and rs6000_pseudo_register_write
3246 in gdbarch if SPE or DFP is available. Adjust gdbarch's
3247 num_pseudo_regs to account for DFP pseudo regs.
3248
5a9e69ba
TJB
32492008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3250
3251 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
3252 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
3253 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
3254 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
3255 e500_pseudo_register_read, e500_pseudo_register_write): Use
3256 IS_SPE_PSEUDOREG macro.
3257 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
3258 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
3259 Remove initialization of tdep->ppc_ev31_regnum.
3260
4e885b20
JB
32612008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3262
3263 * printcmd.c (print_formatted): Handle references as for unformatted
3264 prints.
3265
80f064a2
JB
32662008-01-30 Joel Brobecker <brobecker@adacore.com>
3267
3268 * eval.c (evaluate_subexp_standard): Add handling of user
3269 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
3270
9b3442ee
PM
32712008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
3272
3273 * eval.c (evaluate_subexp_standard): Support
3274 BINOP_INTDIV opcode.
3275
d118ef87
PH
32762008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
3277
3278 * valarith.c (value_binop): Add floating-point BINOP_MIN and
3279 BINOP_MAX cases.
3280 For BINOP_EXP, use length and signedness of left operand only for
3281 result, as for shifts.
3282 For integral operands to BINOP_EXP, use new integer_pow and
3283 uinteger_pow functions so as to get full range of results.
3284 (integer_pow): New function.
3285 (uinteger_pow): New function.
3286
d56d46f5
VP
32872008-01-30 Vladimir Prus <vladimir@codesourcery.com>
3288
3289 Use vector for varobj_list_children interface.
3290 * gdb/varobj.c (varobj_list_children): Return vector
3291 of varobjs.
3292 * gdb/varobj.h (varobj_list_children): Adjust
3293 prototype.
3294 (varobj_p): Declare. Declare vector thereof.
3295 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
3296 for varobj_list_children change.
3297 * Makefile.in (varobj_h): Update dependencies.
3298
1300a2f4
TJB
32992008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3300
3301 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
3302 TYPE_CODE_DECFLOAT arguments.
3303 (ppc64_sysv_abi_push_dummy_call) Likewise.
3304 (get_decimal_float_return_value): New function.
3305 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
3306 values by calling get_decimal_float_return_value.
3307 (ppc64_sysv_abi_return_value): Likewise.
3308
95ef687d
NR
33092008-01-30 Nick Roberts <nickrob@snap.net.nz>
3310
3311 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
3312 for preprocessor macro information. Formatting changes.
3313
2d717e4f
DJ
33142008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3315
3316 * remote.c (struct remote_state): Add cached_wait_status.
3317 (remote_exec_file): New variable.
3318 (PACKET_vAttach, PACKET_vRun): New constants.
3319 (extended_remote_restart): Do not query for status.
3320 (struct start_remote_args): New.
3321 (remote_start_remote): Take it as a second argument. Check
3322 whether the target is running. Issue an error for non-running
3323 non-extended targets. Cache the wait status. Set inferior_ptid
3324 here.
3325 (remote_open_1): Prompt to disconnect non-running targets. Make
3326 sure the target is marked running. Do not set inferior_ptid here.
3327 Update call to remote_start_remote. Do not call remote_check_symbols
3328 if the target is not running.
3329 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
3330 argument. Handle a non-running target.
3331 (remote_detach): Use it.
3332 (extended_remote_detach): New.
3333 (remote_disconnect): Fix typo. Use remoute_mourn_1.
3334 (extended_remote_attach_1, extended_remote_attach)
3335 (extended_async_remote_attach): New.
3336 (remote_vcont_resume): Remove unused variable.
3337 (remote_wait, remote_async_wait): Use any cached wait status.
3338 (putpkt_binary, getpkt): Clear any cached wait status.
3339 (extended_remoute_mourn_1): New.
3340 (extended_remote_mourn): Use it.
3341 (extended_async_remote_mourn, extended_remote_run): New.
3342 (extended_remote_create_inferior_1): New.
3343 (extended_remote_create_inferior): Use it.
3344 (extended_remote_async_create_inferior): Likewise.
3345 (remote_xfer_partial): Skip for non-executing targets.
3346 (init_extended_remote_ops): Set to_detach and to_attach.
3347 (init_extended_async_remote_ops): Likewise. Use
3348 extended_async_remote_mourn.
3349 (_initialize_remote): Register vAttach, vRun, and
3350 set remote exec-file.
3351 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
3352
e85a822c
DJ
33532008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3354
3355 * Makefile.in (symfile.o): Update.
3356 * NEWS: Mention exec tracing support.
3357 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
3358 exec events.
3359 * infcmd.c (kill_if_already_running, detach_command)
3360 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
3361 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
3362 (follow_exec): Do not check may_follow_exec. Do not mourn and push
3363 targets. Apply the sysroot path to the loaded executable. Use
3364 no_shared_libraries.
3365 * linux-nat.c (linux_child_follow_fork): Print fork following
3366 messages if verbose.
3367 (kill_wait_callback): Kill again before waiting a second time.
3368 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
3369 no_shared_libraries.
3370
9db13498
JB
33712008-01-29 Joel Brobecker <brobecker@adacore.com>
3372
3373 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
3374
b4d5ed91
JB
33752008-01-29 Joel Brobecker <brobecker@adacore.com>
3376
3377 * nto-tdep.h: Remove #include "defs.h".
3378 * nto-tdep.c: Add #include "defs.h".
3379 * Makefile.in (nto_tdep_h): Update dependencies.
3380 (nto-tdep.o): Likewise.
3381
107313f7 33822008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
3383
3384 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
3385 and use it.
3386 (proceed, start_remote): Update call to wait_for_inferior.
3387 * inferior.h (wait_for_inferior): Update declaration.
3388 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
3389 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
3390 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
3391 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
3392
3f4178d6
DJ
33932008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
3394
3395 * varobj (adjust_value_for_child_access): Added checking for
3396 returned value from gdb_value_ind.
3397 (c_describe_child): Likewise.
3398 (cplus_describe_child): Fixed a typo.
3399
5eeba8d4
JB
34002008-01-29 Jim Blandy <jimb@red-bean.com>
3401
3402 * MAINTAINERS: Update my info.
3403
a5606eee
VP
34042008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3405
3406 Use multiple locations for hardware watchpoints.
3407 This eliminates the need to traverse value chain, doing
3408 various checks, in three different places.
3409
3410 * breakpoint.h (struct bp_location): New fields
3411 lengths and watchpoint_type.
3412 (struct breakpoint): Remove the val_chain field.
3413 * breakpoint.c (is_hardware_watchpoint): New.
3414 (free_valchain): Remove.
3415 (update_watchpoint): New.
3416 (insert_bp_location): For hardware watchpoint, just
3417 directly insert it.
3418 (insert_breakpoints): Call update_watchpoint_locations
3419 on all watchpoints. If we have failed to insert
3420 any location of a hardware watchpoint, remove all inserted
3421 locations.
3422 (remove_breakpoint): For hardware watchpoints, directly
3423 remove location.
3424 (watchpoints_triggered): Iterate over locations.
3425 (bpstat_stop_status): Use only first location of
3426 a resource watchpoint.
3427 (delete_breakpoint): Don't call free_valchain.
3428 (print_one_breakpoint): Don't print all
3429 locations for watchpoints.
3430 (breakpoint_re_set_one): Use update_watchpoint for
3431 watchpoints.
3432
0b3de036
VP
34332008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3434
3435 Don't reset watchpoint block on solib load.
3436
3437 * breakpoint.c (insert_bp_location): For watchpoints,
3438 recompute condition.
3439 (breakpoint_re_set_one): Instead of recomputing value
3440 and condition for watchpoints, just reset value and
3441 let insert_breakpoints/insert_bp_location recompute it.
3442 Don't do anything about disabled watchpoint.
3443
c3940723
PM
34442008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
3445
3446 * valarith.c (value_binop): Handle unsigned integer
3447 division by zero.
3448
83845630
KB
34492008-01-28 Kevin Buettner <kevinb@redhat.com>
3450
3451 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
3452 instruction pattern that appears frequently in position
3453 independent code. Fix bug in code which looks for "fmov" and
3454 backtracks if no "fmov" is found.
3455
9ce5d3bb
DE
34562008-01-28 Doug Evans <dje@google.com>
3457
3458 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
3459 Reformat comments to 80 columns.
3460 Move local var def closer to only use.
9ce5d3bb 3461
c78d192c
DJ
34622008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3463
3464 * fork-child.c (SHELL_FILE): Remove #ifndef.
3465 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
3466
e11481da
PM
34672008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
3468
3469 * i386-tdep.c (i386_skip_noop): New function.
3470 (i386_analyze_prologue): Call i386_skip_noop function.
3471
244e85c8
MS
34722008-01-24 Michael Snyder <msnyder@specifix.com>
3473
3474 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
3475 * win32-nat.c (win32_xfer_partial): Ditto.
3476 * target.c (default_xfer_partial): Minor whitespace adjustment.
3477
dd6be234
PA
34782008-01-24 Pedro Alves <pedro@codesourcery.com>
3479
3480 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
3481 strip bit 1 even if pc doesn't point to thumb code.
3482
9fa2223d
DJ
34832008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
3484
3485 * remote.c (remote_wait): Handle SIGINT between packets.
3486 (remote_async_wait): Likewise.
3487
93815fbf
VP
34882008-01-23 Vladimir Prus <vladimir@codesourcery.com>
3489 Chris Demetriou <cgd@google.com>
3490
3491 * thread.c (add_thread_silent): Renamed
3492 from add_thread.
3493 (print_thread_events): New variable definition.
3494 (show_print_thread_events): New function.
3495 (_initialize_thread): Add "set print thread-events" and
3496 "show print thread-events" commands.
3497 (add_thread): Announce new thread.
3498 * gdbthread.h (add_thread_silent): Declare.
3499 (print_thread_events): New variable declaration.
3500 * inf-ttrace.c (inf_ttrace_wait): Don't
3501 inform about new thread, as add_thread is always
3502 called too, and will take care of that.
3503 * infrun.c (handle_inferior_event): Likewise.
3504 * procfs.c (procfs_wait): Likewise.
3505 * remote.c (remote_currthread): Likewise.
3506 * sol-thread.c (sol_thread_wait): Likewise.
3507 * win32-nat.c (get_win32_debug_event): Likewise.
3508 * linux-thread-db.c (attach_thread): Likewise.
3509 Remove the verbose parameter.
3510 (check_event): Make detach_thread be verbose
3511 only if print_thread_events is set.
3512 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
3513 about new thread. This is called only from
3514 linux-thread-db.c:attach_thread, which will take care.
3515 Remove the verbose parameter.
3516 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
3517
b4d7c9a6
NR
35182008-01-23 Nick Roberts <nickrob@snap.net.nz>
3519
3520 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
3521
60c46647
VP
35222008-01-22 Vladimir Prus <vladimir@codesourcery.com>
3523
3524 * breakpoint.c (break_command_really): New parameter
3525 ignore_count.
3526 (break_command_1): Pass 0 as
3527 ignore_count to break_command_really.
3528 (gdb_breakpoint): Pass ignore_count to
3529 break_command_really.
3530
e84605cd
KB
35312008-01-21 Kevin Buettner <kevinb@redhat.com>
3532
3533 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
3534 sigcontext struct via pointer.
3535 (struct sigframe comment): Update to show new field `psc'.
3536
9d9cd7ac
VP
35372008-01-21 Vladimir Prus <vladimir@codesourcery.com>
3538
3539 * infrun.c (handle_inferior_event): If
3540 we failed to remove breakpoints, error,
3541 don't try to increment PC by hand.
3542
af5ca30d
NH
35432008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
3544
3545 Add NetBSD/hppa target and host support.
3546
3547 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
3548 (hppabsd_gregset): Move to ...
3549 (hppabsd_regset_from_core_section): Rename
3550 hppaobsd_regset_from_core_section and move to ...
3551 (hppabsd_find_global_pointer): Update comment.
3552 (hppabsd_init_abi): Make global. Do not register
3553 hppabsd_regset_from_core_section.
3554 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
3555 move to ...
3556 (_initialize_hppabsd_tdep): Move to ...
3557 * hppaobsd-tdep.c: ... here. New file.
3558 * hppnbsd-tdep.c: New file.
3559 * hppnbsd-nat.c: New file.
3560 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
3561 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3562 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
3563 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
3564 * configure.host (hppa*-*-netbsd*): New entry.
3565 * configure.tgt (hppa*-*-netbsd*): New entry.
3566 (hppa*-*-openbsd*): Update.
3567 * NEWS (New native configuration): Mention NetBSD/hppa.
3568 (New targets): Mention NetBSD/hppa.
3569
32c9a795
MD
35702008-01-18 Markus Deuling <deuling@de.ibm.com>
3571
3572 * gdbarch.sh (function_list): Add new property bits_big_endian to
3573 gdbarch structure.
3574 * gdbarch.{c,h}: Regenerate.
3575
3576 * value.c (struct value): Replace BITS_BIG_ENDIAN by
3577 gdbarch_bits_big_endian (comment).
3578 (unpack_field_as_long, modify_field): Likewise.
3579 * value.h: Likewise (comment).
3580 * valops.c (value_slice): Likewise.
3581 * valarith.c (value_subscript, value_bit_index): Likewise.
3582 * gdbtypes.h (field): Likewise (comment).
3583 * eval.c (evaluate_subexp_standard): Likewise.
3584 * dwarf2read.c (dwarf2_add_field): Likewise.
3585 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
3586 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
3587
3588 * defs.h (BITS_BIG_ENDIAN): Remove.
3589
1e5e79d0
MD
35902008-01-18 Markus Deuling <deuling@de.ibm.com>
3591
3592 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
3593 function calls.
3594 * m2-exp.y (yylex): Likewise.
3595 * objc-exp.y (yylex): Likewise.
3596
3597 * defs.h (DEPRECATED_STREQN): Remove.
3598
fabda5a7
L
35992008-01-17 H.J. Lu <hjl.tools@gmail.com>
3600
3601 * MAINTAINERS: Update my email address.
3602
92726479
JB
36032008-01-17 Jim Blandy <jimb@codesourcery.com>
3604
3605 * README: Mention gdbserver/README.
3606
ef80d18e
PM
36072008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3608
3609 * valarith.c (value_binop): Handle BINOP_INTDIV
3610 for unsigned and signed integers.
3611
1de90795
UW
36122008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
3613
3614 * s390-tdep.c (s390_gdbarch_init): Set default long double
3615 type to 128-bit IEEE quad.
3616
c70bd6f3
JB
36172008-01-17 Joel Brobecker <brobecker@adacore.com>
3618
3619 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
3620
ba759613
MK
36212008-01-16 Mark Kettenis <kettenis@gnu.org>
3622
77d49ac6
MK
3623 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
3624
ba759613
MK
3625 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
3626 * value.c: All callers changed.
3627
7ecb6532
MD
36282008-01-16 Markus Deuling <deuling@de.ibm.com>
3629
3630 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
3631 DEPRECATED_STREQ by its expression.
3632 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
3633 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
3634 (scan_xcoff_symtab): Likewise.
3635 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
3636 * f-lang.c (find_common_for_function): Likewise.
3637 * objc-exp.y (parse_number): Likewise.
3638
3639 * defs.h (DEPRECATED_STREQ): Remove.
3640
d15cf01c
MD
36412008-01-16 Markus Deuling <deuling@de.ibm.com>
3642
3643 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
3644 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
3645 get_frame_arch to get at the current_architecture. Update AM33_MODE
3646 call.
3647 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
3648 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
3649 architecture.
3650 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
3651
f8028488
MD
36522008-01-16 Markus Deuling <deuling@de.ibm.com>
3653
3654 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
3655 parameter.
3656 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
3657
3658 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
3659 current_gdbarch by gdbarch. Update caller.
3660
3661 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
3662 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
3663 the current architecture. Update calls of
3664 amd64_native_gregset_supplies_p.
3665 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
3666 (amd64bsd_store_inferior_registers): Likewise.
3667
e101270f
MD
36682008-01-16 Markus Deuling <deuling@de.ibm.com>
3669
3670 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
3671 Replace current_gdbarch by gdbarch. Update caller.
3672
063e58ba
MD
36732008-01-16 Markus Deuling <deuling@de.ibm.com>
3674
3675 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
3676 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
3677 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
3678 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
3679 (stabsect_build_psymtabs): Fix indentation.
3680
662fb31b
MS
36812008-01-15 Michael Snyder <msnyder@specifix.com>
3682
3683 * corelow.c (core_xfer_partial): Comment, cut/paste error.
3684
c1766e7d
PM
36852008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3686
3687 * win32-nat.c (win32_create_inferior): Restore code calling
3688 CloseHandle on ProcessInformation structure.
3689
5ed10e6e
NH
36902008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
3691
3692 * configure.ac: Check for void * as 3 argument of ptrace.
3693 * configure: regenerate.
3694
be8626e0
MD
36952008-01-11 Markus Deuling <deuling@de.ibm.com>
3696
3697 * alpha-tdep.c (alpha_heuristic_proc_start)
3698 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
3699 current_gdbarch by gdbarch.
3700
3701 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
3702 current architecture by frame_info. Update alpha_heuristic_proc_start
3703 call.
3704
3705 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
3706 get_frame_arch to get at the current architecture by frame_info. Update
3707 alpha_sigtramp_register_address call.
3708
3709 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
3710 current_gdbarch by gdbarch. Update caller.
3711 (convert_to_extended, convert_from_extended): Add endianess parameter
3712 for comparison. Update caller.
3713 (arm_extract_return_value, arm_store_return_value): Use
3714 get_regcache_arch to get at the current architecture.
3715
3716 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
3717 current_gdbarch by gdbarch. Update caller.
3718 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
3719 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
3720
3721 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
3722 gdbarch as parameter. Update caller.
3723 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
3724 current_gdbarch by gdbarch. Update caller.
3725
3726 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
3727 update caller. Replace current_gdbarch by gdbarch.
3728
3729 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
3730 the current architecture. Replace current_gdbarch by gdbarch.
3731 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3732 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
3733 expression. Add gdbarch as parameter and replace current_gdbarch with
3734 it. Update caller.
3735 (M6811_TDEP): Remove.
3736 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
3737 architecture.
3738 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
3739 current_gdbarch by gdbarch. Update caller.
3740
3741 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
3742 update caller.
3743 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
3744 by gdbarch.
3745
3746 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
3747 caller. Relace current_gdbarch by gdbarch.
3748 (altivec_register_p, spe_register_p): Likewise.
3749 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
3750 parameter.
3751 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
3752 altivec_register_p and spe_register_p.
3753
3754 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
3755 caller. Replace current_gdbarch by gdbarch.
3756 (score_analyze_prologue): use get_frame_arch to get at the current
3757 architecture.
3758
3759 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
3760 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
3761 current_gdbarch by gdbarch. Update caller.
3762 (sparc_frame_cache): Use get_frame_arch to get at the current
3763 architecture.
3764 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
3765 sparc_analyze_prologue.
3766
3767 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
3768 parameter.
3769
ed49a04f
MD
37702008-01-11 Markus Deuling <deuling@de.ibm.com>
3771
3772 * exec.c: #include "arch-utils.h"
3773 (print_section_info): Use gdbarch_from_bfd to get at the
3774 current architecture. Replace current_gdbarch. Fix indention. Replace
3775 deprecated_print_address_numeric by paddress.
3776 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3777
3778 * valprint.c (val_print_string): Replace
3779 deprecated_print_address_numeric.
3780 * tracepoint.c (trace_mention, scope_info): Likewise.
3781 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3782 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3783 (maintenance_check_symtabs): Likewise.
3784 * symfile.c (list_overlays_command): Likewise.
3785 * stack.c (frame_info, print_block_frame_labels): Likewise.
3786 * printcmd.c (print_address, print_address_demangle)
3787 (address_info): Likewise.
3788 * corefile.c (memory_error): Likewise.
3789 * infcmd.c (jump_command): Likewise.
3790 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3791 (mention, delete_breakpoint): Likewise.
3792 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3793 * dwarf2read.c (dump_die): Likewise.
3794 * ada-valprint.c (ada_val_print_1): Likewise.
3795 * f-valprint.c (f_val_print): Likewise.
3796 * linux-fork.c (info_forks_command): Likewise.
3797 * m32r-com.c (m32r_load_section, m32r_load)
3798 (m32r_upload_command): Likewise.
3799
3800 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3801
6093d2eb
MD
38022008-01-11 Markus Deuling <deuling@de.ibm.com>
3803
3804 * gdbarch.sh (skip_prologue): Add gdbarch
3805 as parameter.
3806 * gdbarch.{c,h}: Regenerate.
3807
3808 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3809 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3810 * avr-tdep.c (avr_skip_prologue): Likewise.
3811 * cris-tdep.c (cris_skip_prologue): Likewise.
3812 * frv-tdep.c (frv_skip_prologue): Likewise.
3813 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3814 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3815 * i386-tdep.c (i386_skip_prologue): Likewise.
3816 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3817 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3818 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3819 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3820 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3821 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3822 * mep-tdep.c (mep_skip_prologue): Likewise.
3823 * mips-tdep.c (mips_skip_prologue): Likewise.
3824 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3825 * mt-tdep.c (mt_skip_prologue): Likewise.
3826 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3827 * score-tdep.c (score_skip_prologue): Likewise.
3828 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3829 * sh-tdep.c (sh_skip_prologue): Likewise.
3830 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3831 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3832 * spu-tdep.c (spu_skip_prologue): Likewise.
3833 * v850-tdep.c (v850_skip_prologue): Likewise.
3834 * vax-tdep.c (vax_skip_prologue): Likewise.
3835 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3836 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3837
3838 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3839 current_gdbarch by gdbarch.
3840 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3841 * s390-tdep.c (s390_skip_prologue): Likewise.
3842
72f5cf0e
DE
38432008-01-10 Doug Evans <dje@google.com>
3844
3845 * defs.h (struct continuation_arg): Fix typo in comment.
3846 * target.c (target_translate_tls_address): Fix comment spelling error.
3847
689e4e2d
TJB
38482008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
3849
3850 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
3851 (DOUBLEST_SCAN_FORMAT): Likewise.
3852 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
3853 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
3854 * c-exp.y (parse_number): Likewise.
3855 * jv-exp.y (parse_number): Likewise.
3856 * objc-exp.y (parse_number): Likewise.
3857 * p-exp.y (parse_number): Likewise.
3858
ab0d6e0d
JB
38592008-01-09 Joel Brobecker <brobecker@adacore.com>
3860
3861 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
3862 (check_typedef): Likewise.
3863
0aea4bf3
LM
38642008-01-09 Luis Machado <luisgpm@br.ibm.com>
3865
3866 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
3867 seen_double_big_d, treat the new H, D, and DD modifiers as length
3868 modifiers.
3869
137033e9
JB
38702008-01-08 Joel Brobecker <brobecker@adacore.com>
3871
3872 * dwarf2read.c (read_enumeration_type): Add comment.
3873
dda297ec
TJB
38742008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
3875
3876 * config.in: Regenerate.
3877
a93c0eb6
JB
38782008-01-08 Joel Brobecker <brobecker@adacore.com>
3879
3880 * ada-lang.c (ada_convert_actual): Renames convert_actual.
3881 Make non-static.
3882 (ada_convert_actuals): Delete.
3883 * ada-lang.h (ada_convert_actual): Add declaration.
3884 (ada_convert_actuals): Remove declaration.
3885 * infcall.c: #include "ada-lang.h".
3886 (value_arg_coerce): Add new parameter sp. Update function
3887 documetnation. Add handling of Ada function call parameters.
3888 * Makefile.in (infcall.o): Update dependencies.
3889
a84a8a0d
JB
38902008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3891
3892 * ada-lang.c (ensure_lval): Fix value lval kind.
3893 (convert_actual): Add handling for arguments passed by reference.
3894
d7f98cce
DE
38952008-01-08 Doug Evans <dje@google.com>
3896
3897 * dbxread.c (read_dbx_symtab): Fix indentation.
3898
4ef30785
TJB
38992008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3900
3901 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
3902 (valarith.o): Depend on dfp.h.
3903 (valops.o): Likewise.
3904 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
3905 (set_decnumber_context): New function.
3906 (decimal_check_errors): Likewise.
3907 (decimal_from_number): Likewise.
3908 (decimal_to_number): Likewise.
3909 (decimal_from_string): Use set_decnumber_context and
3910 decimal_check_errors.
3911 (decimal_from_integral): New function.
3912 (decimal_from_floating): Likewise.
3913 (decimal_to_double): Likewise.
3914 (promote_decimal): Likewise.
3915 (decimal_binop): Likewise.
3916 (decimal_is_zero): Likewise.
3917 (decimal_compare): Likewise.
3918 (decimal_convert): Likewise.
3919 * dfp.h (decimal_from_integral): New prototype.
3920 (decimal_from_floating): Likewise.
3921 (decimal_to_double): Likewise.
3922 (decimal_binop): Likewise.
3923 (decimal_is_zero): Likewise.
3924 (decimal_compare): Likewise.
3925 (decimal_convert): Likewise.
3926 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
3927 call to value_from_decfloat.
3928 * valarith.c: Include dfp.h.
3929 (value_args_as_decimal): New function.
3930 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
3931 (value_logical_not): Likewise.
3932 (value_equal): Likewise.
3933 (value_less): Likewise.
3934 (value_pos): Likewise.
3935 (value_neg): Formatting fix.
3936 * valops.c: Include dfp.h.
3937 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
3938 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
3939 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
3940 (value_from_decfloat): Remove expect_type argument.
3941 * value.h (value_from_decfloat): Update prototype.
3942
a7c02bc8
VP
39432008-01-07 Vladimir Prus <vladimir@codesourcery.com>
3944
3945 Ignore change in name of dynamic linker during
3946 execution on Solaris. This also unbreaks pending breakpoints.
3947
3948 * solist.h (struct target_so_ops): New field same.
3949 * solib-svr4.c (svr4_same): New.
3950 (_initialize_svr4_solib): Register svr4_same.
3951 * solib.c (update_solib_list): Use ops->same, if available.
3952
610dd7f9
CF
39532008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
3954
3955 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
3956 when using MS-DOS paths.
3957
7a404eba
PA
39582008-01-05 Pedro Alves <pedro@codesourcery.com>
3959
3960 * NEWS: Mention --pid and --core command line behaviour changes.
3961
a4d9b460
PA
39622008-01-05 Pedro Alves <pedro@codesourcery.com>
3963
3964 * main.c (captured_main): Remove 'count' varible and the
3965 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
3966 --pid options were issued simultaneously. If an explicit pid
3967 option was passed, don't fallback to core file. Detect extra
3968 arguments better in the presence of explicit pid or core
3969 arguments.
3970
0c281816
JB
39712008-01-05 Joel Brobecker <brobecker@adacore.com>
3972
3973 * ada-lang.c (ada_which_variant_applies): Correctly compute
3974 the value of the discriminant when the variant record is packed.
3975
babe1480
JB
39762008-01-04 Joel Brobecker <brobecker@adacore.com>
3977
3978 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
3979 that are used to differentiate homonyms.
3980
727e3d2e
JB
39812008-01-04 Jerome Guitton <guitton@adacore.com>
3982
3983 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
3984 when the type is an anonymous pointer type.
3985 (ada_check_typedef): Avoid a seg fault when the type is null.
3986 * ada-typeprint.c (print_array_type): Add support for pointer
3987 to packed arrays.
3988
bb28a9dc
JB
39892008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
3990
3991 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3992
6799def4
JB
39932008-01-04 Joel Brobecker <brobecker@adacore.com>
3994
3995 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3996 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3997
d3353bbd
JB
39982008-01-04 Joel Brobecker <brobecker@adacore.com>
3999
4000 * ada-exp.y (chop_separator): New function.
4001 (write_selectors): Rewrite to re-use chop_separator.
4002 (ada_nget_field_index, get_symbol_field_type): New functions.
4003 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
4004 expressions.
4005
82cf6c60
TJB
40062008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
4007
4008 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
4009 of SYMBOL_VALUE when working with function symbols.
4010
b3dbf008
JB
40112008-01-03 Joel Brobecker <brobecker@adacore.com>
4012
4013 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
4014 expressions. These expressions do not need to be rewriten.
4015
02eb380e
JB
40162008-01-03 Joel Brobecker <brobecker@adacore.com>
4017
4018 * dwarf2read.c (read_enumeration_type): Flag type as stub if
4019 the given die is a declaration.
4020
abb68b3e
JB
40212008-01-03 Joel Brobecker <brobecker@adacore.com>
4022
4023 * ada-lang.c (ada_array_bound_from_type): Make non-static.
4024 Handle properly the case when the index type is an enumerated type.
4025 Do not return the subtype of the bounds type, just return the
4026 bounds type directly - this is not needed and is more consistent
4027 with what we do for arrays when no XA parallel type exists.
4028
f192137b
JB
40292008-01-03 Joel Brobecker <brobecker@adacore.com>
4030
4031 * ada-lang.c (static_unwrap_type): Add forward declaration.
4032 (template_to_static_fixed_type): Fields of dynamic types sometimes
4033 also need to be unwrapped. Take this into account.
4034 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
4035 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
4036 * ada-typeprint.c (ada_print_type): Get the typename from
4037 the original type, not the base type.
4038
1ed6ede0
JB
40392008-01-03 Jerome Guitton <guitton@adacore.com>
4040
4041 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
4042 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
4043 Update calls to ada_to_fixed_type.
4044 (ada_template_to_fixed_record_type_1): Ditto, but without looking
4045 for the tag.
4046 (ada_to_fixed_type): Add check_tag parameter; do not look for
4047 tag if null. When looking for a tag, use a fixed record type.
4048 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
4049 * ada-valprint.c (printable_val_type, ada_value_print): Update
4050 calls to ada_to_fixed_type.
4051
542a88d0
LM
40522008-01-03 Luis Machado <luisgpm@br.ibm.com>
4053
4054 * doublest.c (convert_floatformat_to_doublest): Call
4055 floatformat_to_doublest instead of floatformat_to_double and use
4056 DOUBLEST variables.
4057 (convert_doublest_to_floatformat): Call floatformat_from_doublest
4058 instead of floatformat_from_double and use DOUBLEST variables.
4059
dc2bbab2
NH
40602008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
4061
4062 * MAINTAINERS (Write After Approval): Add self.
4063
8b60591b
JB
40642008-01-03 Joel Brobecker <brobecker@adacore.com>
4065
4066 * symfile.c (set_initial_language): Make non-static.
4067 * symfile.h (set_initial_language): Add declaration.
4068 * language.c: #include "symfile.h".
4069 (set_language): Call set_initial_language if the frame language
4070 could not be determined.
4071
ceef53c1
JB
40722008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
4073
4074 * eval.c (evaluate_subexp_for_address): Provide frame address to
4075 locate_var_value only if it will be needed.
4076
ef29ce1a
JK
40772008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4078
4079 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
4080
0a07e705
JB
40812008-01-02 Joel Brobecker <brobecker@adacore.com>
4082
4083 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
4084 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
4085 This is needed to make sure that any other treatment applied
4086 to the resulting value does not fail for spurious reason,
4087 such as trying to take the address of this value.
4088
f58b38bf
JB
40892008-01-02 Joel Brobecker <brobecker@adacore.com>
4090
4091 * ada-lang.c (ada_value_equal): Dereference reference types when
4092 comparing arrays.
4093
9b254dd1
DJ
40942008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
4095
4096 Updated copyright notices for most files.
4097
33605d39
CF
40982008-01-01 Christopher Faylor <me+gdb@cgf.cx>
4099
4100 * win32-nat.c (psapi_module_handle): Remove static.
4101 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
4102 return first module found if base_address is zero. Don't initialize
4103 psapi function pointers here. Convert to cygwin paths when
4104 appropriate.
4105 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
4106 executable name. Use get_module_name when that fails or when
4107 !__CYGWIN__.
4108 (_initialize_psapi): New function. Initialize psapi stuff before it is
4109 needed or issue a warning if it is not found. Move psapi_module_handle
4110 here.
4111
29480c32
JB
41122008-01-01 Joel Brobecker <brobecker@adacore.com>
4113
4114 * ada-lang.c (ada_remove_trailing_digits): New function.
4115 (ada_remove_po_subprogram_suffix): New function.
4116 (ada_decode): Improve. Move the description of the algorithm
4117 directly inside the code, instead of in the function global
4118 description.
4119
969a1360
JB
41202008-01-01 Joel Brobecker <brobecker@adacore.com>
4121
4122 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
4123 and always print the dereferenced value.
4124
b7789565
JB
41252008-01-01 Joel Brobecker <brobecker@adacore.com>
4126
4127 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
4128 of the case where the first argument is a reference.
4129 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
4130
73fb9985
JB
41312008-01-01 Joel Brobecker <brobecker@adacore.com>
4132
4133 Implement support for Ada interface types.
4134
4135 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
4136 (ada_is_ignored_field): Ignore fields that are a dispatch table
4137 of a tagged type.
4138
636265b6
JB
41392008-01-01 Joel Brobecker <brobecker@adacore.com>
4140
4141 * top.c (print_gdb_version): Update copyright year.
4142
9d200a2e 41432008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 4144
9d200a2e
JB
4145 * ChangeLog-2007: New ChangeLog rotation.
4146 * ChangeLog: Reset for 2008.
4147 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
4148 ChangeLog-2007.
b7589f7d 4149
9d200a2e 4150For older changes see ChangeLog-2007.
c906108c
SS
4151\f
4152Local Variables:
4153mode: change-log
4154left-margin: 8
4155fill-column: 74
4156version-control: never
57da7796 4157coding: utf-8
c906108c 4158End:
This page took 1.08993 seconds and 4 git commands to generate.