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