Generate set_tdesc_osabi for valid OSABI.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c3f08eb7
L
12010-02-04 H.J. Lu <hongjiu.lu@intel.com>
2
3 * target-descriptions.c: Include "osabi.h".
4 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
5 OSABI.
6
2d33f7b8
TG
72010-02-04 Tristan Gingold <gingold@adacore.com>
8
9 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
10 (macho_symtab_read): Adjust calls to macho_add_oso.
11 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
12 (macho_symfile_read): Adjust call to macho_oso_symfile.
13 (macho_new_init): Move this function after declarations.
14 (macho_symfile_init): Ditto.
15 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
16 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
17
11334b82
VP
182010-02-04 Vladimir Prus <vladimir@codesourcery.com>
19
20 Include MI command in remotelog.
21
22 * mi/mi-main.c (mi_execute_command): Call target_log_command.
23
ff97be06
L
242010-02-03 H.J. Lu <hongjiu.lu@intel.com>
25
26 * remote.c (remote_state): Remove gdbarch.
27 (init_remote_state): Don't set gdbarch.
28 (remote_query_supported): Pass target_gdbarch instead of
29 rs->gdbarch to gdbarch_qsupported.
30
75cebea9
L
312010-02-03 H.J. Lu <hongjiu.lu@intel.com>
32
33 * gdbarch.sh: Add qsupported.
34
35 * gdbarch.c: Regenerated.
36 * gdbarch.h: Likewise.
37
38 * remote.c (remote_state): Add gdbarch.
39 (init_remote_state): Set gdbarch.
40 (remote_query_supported): Support gdbarch_qsupported.
41
c1dec97b
DJ
422010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
43
44 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
45 __FreeBSD_kernel_version.
46
ac8035ab
TG
472010-02-03 Tristan Gingold <gingold@adacore.com>
48
49 * symfile.h (struct sym_fns): Add sym_relocate field.
50 (default_symfile_relocate): New prototype.
51 (symfile_relocate_debug_section): First argument is now an objfile.
52 * symfile.c (default_symfile_relocate): Rename from
53 symfile_relocate_debug_section, first argument is now an objfile.
54 (symfile_relocate_debug_section): New function.
55 * coffread.c (coff_sym_fns): Set sym_relocate field.
56 * somread.c (som_sym_fns): Ditto.
57 * mipsread.c (ecoff_sym_fns): Ditto.
58 * machoread.c (macho_sym_fns): Ditto.
59 * elfread.c (elf_sym_fns): Ditto.
60 * dwarf2read.c (dwarf2_read_section): Ditto.
61 * xcoffread.c (xcoff_sym_fns): Ditto.
62 * dbxread.c (aout_sym_fns): Ditto.
63 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
64 (elfstab_build_psymtabs): Ditto.
65
be52b756
L
662010-02-03 H.J. Lu <hongjiu.lu@intel.com>
67
68 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
69
9c3c02fd
TT
702010-02-02 Tom Tromey <tromey@redhat.com>
71
72 * valops.c (value_cast_structs): Try downcasting using the RTTI
73 type.
74
f23f4c59
TT
752010-02-02 Tom Tromey <tromey@redhat.com>
76
77 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
78 (gnuv2_baseclass_offset): Now static.
79 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
80 * gnu-v2-abi.h: Remove.
81
0cc2414c
TT
822010-02-02 Tom Tromey <tromey@redhat.com>
83
84 * m2-typeprint.c (m2_record_fields): Don't use
85 TYPE_DECLARED_TYPE.
86 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
87 (struct main_type) <flag_declared_class>: New field.
88 (struct cplus_struct_type) <declared_type>: Remove.
89 <ntemplate_args>: Move earlier.
90 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
91 (DECLARED_TYPE_TEMPLATE): Remove.
92 (TYPE_DECLARED_TYPE): Remove.
93 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
94 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
95 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
96 TYPE_DECLARED_TYPE.
97
edf3d5f3
TT
982010-02-02 Tom Tromey <tromey@redhat.com>
99
100 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
101 * valops.c (search_struct_field): Compute nbases after calling
102 CHECK_TYPEDEF.
103 (check_field): Call CHECK_TYPEDEF.
104 * cp-valprint.c (cp_print_value): Pass correct address to
105 baseclass_offset. Fix check for virtual base past the end of the
106 object. Don't offset address passed to cp_print_value_fields or
107 apply_val_pretty_printer.
108 (cp_print_value_fields): Fix call to val_print.
109 (cp_print_value_fields_rtti): New function.
110 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
111 * p-valprint.c (pascal_object_print_value_fields): Fix call to
112 val_print.
113 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
114 offset to address.
115 * language.h (struct language_defn) <la_val_print>: Document.
116 * c-lang.h (cp_print_value_fields_rtti): Declare.
117
e4b7f41c
JK
1182010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
119
120 PR libc/11214:
121 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
122 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
123 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
124
7618e12b
DJ
1252010-02-01 Michael Matz <matz@suse.de>
126 Daniel Jacobowitz <dan@codesourcery.com>
127
e4b7f41c 128 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
129 functions use a frame pointer.
130
b381ea14
JK
1312010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
132
133 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
134 by a conditional setting DYN_ADDR. Use DYN_ADDR.
135 * config/djgpp/fnchange.lst: Add translations for
136 symbol-without-target_section.exp and symbol-without-target_section.c.
137
0e05dfcb
DJ
1382010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
139
140 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
141 (remote_breakpoint_for_pc): Correct invalid_p check.
142 * gdbarch.c: Regenerated.
143
f9d67f43
DJ
1442010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
145
146 * arm-tdep.c (arm_find_mapping_symbol): New function, from
147 arm_pc_is_thumb.
148 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
149 (extend_buffer_earlier): New function.
150 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
151 (arm_adjust_breakpoint_address): New function.
152 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
153
177321bd
DJ
1542010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
155
156 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
157 (arm_linux_thumb2_le_breakpoint): New constants.
158 (arm_linux_init_abi): Set thumb2_breakpoint and
159 thumb2_breakpoint_size.
160 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
161 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
162 Implement support for single stepping through IT blocks if
163 a 32-bit Thumb breakpoint instruction is available.
164 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
165 is available, use it when needed.
166 (arm_remote_breakpoint_from_pc): New function.
167 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
168 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
169 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
170
a1dcb23a
DJ
1712010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
172
173 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
174 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
175 * gdbarch.c, gdbarch.h: Regenerated.
176 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
177 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
178 gdbarch_remote_breakpoint_from_pc.
179
2b009048
DJ
1802010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
181
182 * infrun.c (prepare_to_proceed): Handle other signals which might
183 match a breakpoint.
184 (handle_inferior_event): Move the check for unusual breakpoint
185 signals earlier.
186
e4e2711a
JB
1872010-01-29 Paul Hilfinger <hilfinger@adacore.com>
188
189 amd64 - function returning record with field straddling 2 registers.
190 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
191 a record of length <= 16 in which a field straddles the two
192 eightbytes.
193
cba6fab5
JB
1942010-01-29 Joel Brobecker <brobecker@adacore.com>
195
196 Implement return values on amd64-windows.
197 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
198 (amd64_windows_return_value): New function.
199 (amd64_windows_init_abi): Call set_gdbarch_return_value with
200 amd64_windows_return_value.
201
3af6ddfe
JB
2022010-01-29 Joel Brobecker <brobecker@adacore.com>
203
204 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 205 parameter registers.
3af6ddfe
JB
206 * i386-tdep.h (struct gdbarch_tdep): Add new field
207 integer_param_regs_saved_in_caller_frame.
208 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
209 tdep->integer_param_regs_saved_in_caller_frame to 1.
210 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
211 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
212
80d19a06
JB
2132010-01-29 Joel Brobecker <brobecker@adacore.com>
214
215 amd64-windows: memory args passed by pointer during function calls.
216 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
217 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
218 where tdep->memory_args_by_pointer is non-zero.
219 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
220 tdep->memory_args_by_pointer to 1.
221
ba581dc1
JB
2222010-01-29 Joel Brobecker <brobecker@adacore.com>
223
4966b6c2 224 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
225 * i386-tdep.h (enum amd64_reg_class): New, moved here from
226 amd64-tdep.c.
227 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
228 call_dummy_integer_regs, and classify.
229 * amd64-tdep.h (amd64_classify): Add declaration.
230 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
231 (amd64_reg_class): Delete, moved to i386-tdep.h.
232 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
233 Replace call to amd64_classify by call to tdep->classify.
234 (amd64_push_arguments): Get the list of registers to use for
235 passing integer parameters from the gdbarch tdep structure,
236 rather than using a hardcoded one. Replace calls to amd64_classify
237 by calls to tdep->classify.
238 (amd64_push_dummy_call): Get the register number used for
239 the "hidden" argument from tdep->call_dummy_integer_regs.
240 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
241 and tdep->call_dummy_integer_regs. Set tdep->classify.
242 * amd64-windows-tdep.c: Add include of gdbtypes.h.
243 (amd64_windows_dummy_call_integer_regs): New static global.
244 (amd64_windows_classify): New function.
245 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
246 tdep->call_dummy_integer_regs and tdep->classify.
247
d37346f0
DJ
2482010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
249
250 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
251 for the new regcache. All callers updated.
252 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
253 (get_thread_arch_regcache): Do not set aspace here.
254 * regcache.h (regcache_xmalloc): Update declaration.
255
256 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
257 regcache_xmalloc updated.
258
7434dadd
JB
2592010-01-28 Joel Brobecker <brobecker@adacore.com>
260
261 Another -Wunused-function error in procfs.c (sparc-solaris)
262 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
263 Only define if SYS_syssgi is defined.
264 (remove_dbx_link_breakpoint): Delete declaration. Move up.
265 (dbx_link_addr, insert_dbx_link_bpt_in_file)
266 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
267 is itself defined.
268
16d905e2
CF
2692010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
270
271 * windows-nat.c (windows_initialization_done): New variable.
272 (get_windows_debug_event): Issue error when process dies before
273 completely initializing.
274 (do_initial_windows_stuff): Set flag to indicate when we are done with
275 the initial steps of attaching to the child.
276
cd55e50f
JK
2772010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
278
279 * symtab.h (struct symbol <symtab>): New comment on NULL values.
280
99cc78aa
DE
2812010-01-27 Doug Evans <dje@google.com>
282
4c7dcb84
DE
283 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
284
99cc78aa
DE
285 * breakpoint.c (bpstat_stop_status): Delete useless code.
286
52334bf5
JK
2872010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
288
289 * printcmd.c (display_uses_solib_p): Remove variable section. Access
290 objfile via SYMBOL_SYMTAB.
291
708ead4e
TT
2922010-01-26 Tom Tromey <tromey@redhat.com>
293
294 PR exp/7643:
295 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
296 coerce_array on result.
297
b14e635e
SW
2982010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
299
300 * cp-namespace.c (cp_lookup_symbol_namespace): Added
301 search_parent argument.
302 (cp_add_using): Initialize 'searched' field.
303 (reset_directive_searched): New function.
304 * cp-support.h: Add 'searched' field to using_direct struct.
305 (cp_lookup_symbol_imports): Ditto.
306 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
307 Perform recursive search.
308 Implement non parent search.
309 * valops.c (value_maybe_namespace_elt): Updated.
310
8540c487
SW
3112010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
312
313 PR gdb/10929:
314 * dwarf2read.c (read_lexical_block_scope): Create blocks for
315 scopes which contain using directives even if they contain no
316 declarations.
317 * symtab.c (lookup_symbol_aux): Pass lowest level block to
318 la_lookup_symbol_nonlocal.
319 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
320 cp_lookup_symbol_namespace.
321 (cp_lookup_symbol_namespace): Perform an import lookup at every
322 block level.
323 (cp_lookup_symbol_imports): New function.
324 (cp_lookup_symbol_in_namespace): New function.
325
421d5d99
TT
3262010-01-25 Tom Tromey <tromey@redhat.com>
327
328 PR gdb/11049:
329 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
330 result.
331
6bcc772d
RO
3322010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
333
334 * configure.ac: Only use host_os part when disabling TUI on osf.
335 Use test to check variables, prefix strings with x.
336 * configure: Regenerate.
337
338 * solib-osf.c (osf_current_sos): Initialize tail.
339
1c1238a5
TG
3402010-01-25 gingold <gingold@adacore.com>
341
342 * windows-nat.c (windows_continue): Use %x to print thread id.
343 (get_windows_debug_event): Ditto.
344
0b92b5bb
TT
3452010-01-22 Tom Tromey <tromey@redhat.com>
346
347 PR symtab/11199:
348 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
349 type and arguments. Use smash_to_methodptr_type.
350 (read_structure_type): Call quirk_gcc_member_function_pointer
351 later.
352 * gdbtypes.h (smash_to_methodptr_type): Declare.
353 * gdbtypes.c (smash_to_methodptr_type): New function.
354 (lookup_methodptr_type): Use it.
355
0d5392b8
TT
3562010-01-21 Tom Tromey <tromey@redhat.com>
357
358 PR symtab/11198:
359 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
360 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
361 * glibc-tdep.c (find_minsym_and_objfile): Remove.
362 (glibc_skip_solib_resolver): Use
363 lookup_minimal_symbol_and_objfile.
364
e6d088ec
KT
3652010-01-21 Kai Tietz <kai.tietz@onevision.com>
366
367 * inflow.c (check_syscall): Guard by #if clause for GO32 and
368 WIN32 targets.
369
b966cb8a
TT
3702010-01-20 Tom Tromey <tromey@redhat.com>
371
372 PR backtrace/10770:
373 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
374 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
375 * dwarf2expr.c (new_dwarf_expr_context): Allocate
376 dwarf_stack_values, not CORE_ADDRs.
377 (execute_stack_op): Change DW_OP_div and comparison operators to
378 use signed operands.
379
3f81c18a
VP
3802010-01-20 Vladimir Prus <vladimir@codesourcery.com>
381
382 Per-inferior args and tty and environment.
383
384 * infcmd.c (inferior_args): Rename to ...
385 (inferior_args_scratch): ... this.
386 (inferior_io_terminal): Rename to ...
387 (inferior_io_terminal_scratch): ... this.
388 (inferior_argc, inferior_argv): Remove.
389 (set_inferior_io_terminal, get_inferior_io_terminal): Store
390 inside current_inferior().
391 (set_inferior_tty_command, show_inferior_tty_command): New.
392 (get_inferior_args, set_inferior_args): Store inside
393 current_inferior().
394 (notice_args_set): Likewise and rename to...
395 (set_args_command): ... this.
396 (set_inferior_args_vector): Likewise.
397 (notice_args_read): Rename to...
398 (show_args_command): ...new.
399 (tty_command): Remove.
400 (run_command_1): Don't free old args, as they are freed by
401 set_inferior_arg now.
402 (run_no_args_command): Likewise.
403 (inferior_environ): Remove.
404 (run_command_1): Use environment of the current inferior.
405 (environment_info, set_environment_command)
406 (unset_environment_command, path_info, path_command): Likewise.
407 (_initialize_infcmd): Adjust for function and variable renames.
408 Do not init inferior_environ.
409 * inferior.h (set_inferior_arg): Adjust prototype.
410 (struct inferior): New fields args, argc, argv, terminal, environment.
411 (inferior_environ): Remove declaration.
412 * inferior.c (free_inferior): Free new fields.
413 (add_inferior_silent): Initialize 'environment' field.
414 * main.c (captured_main): Set arguments only after the initial
415 inferior has been created. Set set_inferior_io_terminal,
416 not tty_command.
417 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
418 inferior.
419 (_initialize_mi_cmd_env): Adjust for disappearance of global
420 inferior_environ.
421 * solib.c (solib_find): Use environment of the current inferior.
422
d8b65138
JK
4232010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
424
425 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
426 HAVE_PYTHON.
427 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
428
692465f1
JB
4292010-01-20 Joel Brobecker <brobecker@adacore.com>
430
431 Get rid of ada-lang.c:function_name_from_pc.
432 * ada-lang.c: Add "stack.h" #include.
433 (function_name_from_pc): Delete.
434 (is_known_support_routine): Replace call to function_name_from_pc
435 by call to find_frame_funname.
436 (ada_unhandled_exception_name_addr_from_raise): Likewise.
437
95519e0e
TT
4382010-01-19 Tom Tromey <tromey@redhat.com>
439
440 PR c++/11026:
441 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
442 objfile obstack.
443
95c11dc7
TT
4442010-01-19 Tom Tromey <tromey@redhat.com>
445
446 * top.c (stop_sig, float_handler, do_nothing): Remove.
447
a0f49112
JK
4482010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
449
450 * breakpoint.c (watchpoint_check): Check the call
451 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
452 Extend the comment.
453 * config/djgpp/fnchange.lst: Add translations for
454 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
455 watchpoint-cond-gone-stripped.c.
456
ceeb3d5a
TT
4572010-01-19 Tom Tromey <tromey@redhat.com>
458
459 PR c++/8000:
460 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
461 into parent scope, and enumerator into grandparent scope.
462
2b71fc8e
JB
4632010-01-19 Joel Brobecker <brobecker@adacore.com>
464
465 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
466
03564ed9
JB
4672010-01-19 Joel Brobecker <brobecker@adacore.com>
468
469 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
470 i[34567]86-*-solaris2.1[0-9]*.
471 * configure.tgt: Likewise.
472
fb2e7cb4
JB
4732010-01-19 Joel Brobecker <brobecker@adacore.com>
474
475 * NEWS: Document the source command enhancement allowing it
476 to load Python scripts. Document the "set/show script-extension"
477 commands.
478
1cb5e2a4
JB
4792010-01-19 Joel Brobecker <brobecker@adacore.com>
480
481 Add -Wunused-function to compile flags.
482 * configure.ac: Add -Wunused-function to build_warnings.
483 * configure: Regenerate.
484
0ec6cd0c
JB
4852010-01-19 Joel Brobecker <brobecker@adacore.com>
486
487 "delete" ada-lex.c:input function, not used.
488 * ada-lex.l: #define YY_NO_INPUT.
489
b74845da
JB
4902010-01-19 Joel Brobecker <brobecker@adacore.com>
491
492 Delete free_named_symtabs and associated cleanup.
493 * symfile.h (free_named_symtabs): Delete declaration.
494 * symfile.c: Remove some commented out code (clear_symtab_users_once).
495 (cashier_psymtab): Comment function out.
496 Delete declaration.
497 (free_named_symtabs): Delete.
498 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
499 * dbxread.c (end_psymtab): Likewise.
500 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
501 * exec.c (exec_close_1): Ditto.
502 * xcoffread.c (xcoff_end_psymtab): Likewise.
503
65c06092
JB
5042010-01-19 Joel Brobecker <brobecker@adacore.com>
505
506 * stack.c (print_block_frame_labels): Comment function out.
507
d5cd6034
JB
5082010-01-19 Joel Brobecker <brobecker@adacore.com>
509
510 Delete unused or undefined functions.
511 * breakpoint.c (ep_parse_optional_filename): Delete.
512 * dcache.c (dcache_write_line): Remove declaration.
513 * infrun.c (build_infrun): Remove declaration.
514 * tracepoint.c (tracepoint_save_command): Remove declaration.
515 * linux-nat.c (init_lwp_list): Delete. No longer used.
516 * event-loop.c (check_async_signal_handlers): Delete declaration.
517 * infrun.c (init_execution_control_state): Delete.
518 (proceed): Update comment to avoid mentioning
519 init_execution_control_state.
520 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
521 * ada-lang.c (ada_to_static_fixed_value): Delete.
522 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
523 * cp-namespace.c (cp_copy_usings): Delete.
524 * xml-syscall.c (xml_number_of_syscalls): Delete.
525 * progspace.c (find_program_space_by_num): Delete.
526 * inflow.c (handle_sigio): Delete declaration.
527 * hppa-tdep.c (hppa_alignof): Delete.
528 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
529 (mipsnbsd_core_osabi_sniffer): Delete.
530
4e8f195d
TT
5312010-01-18 Tom Tromey <tromey@redhat.com>
532
533 PR c++/9680:
534 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
535 (CONST_CAST): New tokens.
536 (exp): Add new productions.
537 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
538 reinterpret_cast.
539 (is_cast_operator): New function.
540 (yylex): Handle cast operators specially.
541 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
542 UNOP_REINTERPRET_CAST>: New cases.
543 * expprint.c (print_subexp_standard): Likewise.
544 (op_name_standard): Likewise.
545 (dump_subexp_body_standard): Likewise.
546 * parse.c (operator_length_standard): Likewise.
547 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
548 UNOP_REINTERPRET_CAST.
549 * gdbtypes.c (class_types_same_p): New function.
550 (is_ancestor): Use it.
551 (is_public_ancestor): New function.
552 (is_unique_ancestor_worker): Likewise.
553 (is_unique_ancestor): Likewise.
554 * gdbtypes.h (class_types_same_p, is_public_ancestor)
555 (is_unique_ancestor): Declare.
556 * valops.c (value_reinterpret_cast): New function.
557 (dynamic_cast_check_1): Likewise.
558 (dynamic_cast_check_2): Likewise.
559 (value_dynamic_cast): Likewise.
560 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
561
d9c57d9f
JB
5622010-01-18 Joel Brobecker <brobecker@adacore.com>
563
564 Fix build failure when building without Python support.
565 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
566 is not defined.
567
f80d3ff2
JB
5682010-01-18 Joel Brobecker <brobecker@adacore.com>
569
570 Use XVS field type instead of doing a parallel lookup.
571 * ada-lang.c (ada_get_base_type): Follow the XVS field type
572 if it is a reference type instead of doing a type lookup using
573 the XVS field name.
574
5bf03f13
JB
5752010-01-18 Joel Brobecker <brobecker@adacore.com>
576
577 Trust PAD types instead of using PAD___XVS.
578 * ada-lang.c (trust_pad_over_xvs): New static variable.
579 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
580 parallel XVS type, follow the XVS type instead of the PAD type.
581 (unwrap_value): Make sure that there is no parallel XVE type
582 before returning the value as is.
583 (set_ada_list, show_ada_list): New static variables.
584 (set_ada_command, show_ada_command): New functions.
585 (_initialize_ada_language): Add new "set/show ada" prefix commands.
586 Add new "set/show ada trust-PAD-over-XVS" setting.
587
973817a3
JB
5882010-01-18 Tom Tromey <tromey@redhat.com>
589 Thiago Jung Bauermann <bauerman@br.ibm.com>
590
591 Allow "source" to load python scripts.
592 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
593 * python/python.c (source_python_script): New function.
594 * python/python.h (source_python_script): Add declaration.
595 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
596 (script_ext_off, script_ext_soft, script_ext_strict)
597 (script_ext_enums, script_ext_mode): New static constants.
598 (show_script_ext_mode, find_and_open_script): New functions.
599 (source_script): Enhance to handle Python scripts.
600 (init_cli_cmds): Add set/show script-extension commands.
601
98e03262
SS
6022010-01-16 Stan Shebs <stan@codesourcery.com>
603
604 * tracepoint.h (struct trace_status): Use unsigned long long
605 instead of size_t.
606 * tracepoint.c (trace_status_command): Fix printf directive.
607 (trace_save_command): Check fwrite returns, fix printf directive.
608 (trace_filename): New global.
609 (tfile_open): Set it, check read returns.
610 (tfile_close): Free trace_filename.
611 (tfile_get_traceframe_address): Check read returns.
612 (tfile_trace_find): Ditto.
613 (tfile_fetch_registers): Ditto.
614 (tfile_xfer_partial): Ditto.
615 (tfile_get_trace_state_variable_value): Ditto.
616
00bf0b85
SS
6172010-01-15 Stan Shebs <stan@codesourcery.com>
618
619 Add trace file support.
620 * tracepoint.h (enum trace_stop_reason): New enum.
621 (struct trace_status): New struct.
622 (parse_trace_status): Declare.
623 (struct uploaded_tp): Move here from remote.c,
624 add fields for actions.
625 (struct uploaded_tsv): New struct.
626 * tracepoint.c (tfile_ops): New target vector.
627 (trace_fd): New global.
628 (tfile_open): New function.
629 (tfile_close): New function.
630 (tfile_files_info): New function.
631 (tfile_get_trace_status): New function.
632 (tfile_get_traceframe_address): New function.
633 (tfile_trace_find): New function.
634 (tfile_fetch_registers): New function.
635 (tfile_xfer_partial): New function.
636 (tfile_get_trace_state_variable_value): New function.
637 (init_tfile_ops): New function.
638 (_initialize_tracepoint): Call it, add tfile target.
639 (trace_status): New global.
640 (current_trace_status): New function.
641 (trace_running_p): Remove, change all users to get from
642 current_trace_status()->running.
643 (get_trace_status): Remove.
644 (trace_status_command): Call target_get_trace_status directly,
645 report more detail including tracing stop reasons.
646 (trace_find_command): Always allow tfind on a file.
647 (trace_find_pc_command): Ditto.
648 (trace_find_tracepoint_command): Ditto.
649 (trace_find_line_command): Ditto.
650 (trace_find_range_command): Ditto.
651 (trace_find_outside_command): Ditto.
652 (trace_frames_offset, cur_offset): Declare as off_t.
653 (trace_regblock_size): Rename from reg_size, update users.
654 (parse_trace_status): New function.
655 (tfile_interp_line): New function.
656 (disconnect_or_stop_tracing): Ensure current trace
657 status before asking what to do.
658 (stop_reason_names): New global.
659 (trace_save_command): New command.
660 (get_uploaded_tp): Move here from remote.c.
661 (find_matching_tracepoint): Ditto.
662 (merge_uploaded_tracepoints): New function.
663 (parse_trace_status): Use stop_reason_names.
664 (_initialize_tracepoint): Define tsave command.
665 * target.h (target_ops): New fields to_save_trace_data,
666 to_upload_tracepoints, to_upload_trace_state_variables,
667 to_get_raw_trace_data, change to_get_trace_status
668 to take a pointer to a status struct.
669 (target_save_trace_data): New macro.
670 (target_upload_tracepoints): New macro.
671 (target_upload_trace_state_variables): New macro.
672 (target_get_raw_trace_data): New macro.
673 * target.c (update_current_target): Add new methods, change
674 signature of to_get_trace_status.
675 * remote.c (hex2bin): Make globally visible.
676 (bin2hex): Ditto.
677 (remote_download_trace_state_variable): Download name also.
678 (remote_get_trace_status): Update parameter, use
679 parse_trace_status.
680 (remote_save_trace_data): New function.
681 (remote_upload_tracepoints): New function.
682 (remote_upload_trace_state_variables): New function.
683 (remote_get_raw_trace_data): New function.
684 (remote_start_remote): Use them.
685 (_initialize_remote_ops): Add operations.
686 * ax-gdb.c: Include breakpoint.h.
687 * breakpoint.c (create_tracepoint_from_upload): Use
688 break_command_really, return tracepoint, warn about unimplemented
689 parts.
690 * NEWS: Mention trace file addition.
691
d904de5b
JK
6922010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 Fix compilation warning on gcc-3.4.
695 * exec.c (print_section_info): Move the `displacement' variable
696 initialization to its declaration.
697
64aa9731
JK
6982010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
699
700 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
701 comparison.
702
ca1f5def 7032010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
704
705 "info tasks" broken by typedefs in ATCB type definitions.
706 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
707 ada_check_typedef before retrieving the length of the type for
708 regular fields.
709
12ab9e09
JB
7102010-01-15 Joel Brobecker <brobecker@adacore.com>
711
712 Do not use name-based lookup for unconstrained packed arrays.
713 * ada-lang.c (find_parallel_type_by_descriptive_type):
714 Limit the fallback to name-based lookups to the case where
715 the type is a constrained packed array.
716
c389c3dc
JB
7172010-01-15 Joel Brobecker <brobecker@adacore.com>
718
719 Enhance gdb-gdb.py to handle main_type.type_specific.
720 * gdb-gdb.py: Print the type-specific part of struct main_type.
721
7991dee7
JK
7222010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
723
724 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
725 * configure: Regenerate.
726 * config.in: Regenerate.
727 * utils.c: Include sys/resource.h.
728 (dump_core, can_dump_core): New.
729 (internal_vproblem): Update the comment. Check can_dump_core while
730 setting dump_core_p. Replace two abort calls by dump_core calls.
731
93c26624
JK
7322010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
733 Eli Zaretskii <eliz@gnu.org>
734
735 * NEWS: Document the PIE support.
736
55235ad7
JK
7372010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
738
739 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
740 (check_is_pie_binary, _initialize_linux_tdep): Remove.
741
41752192
JK
7422010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
743
744 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
745 Replace exec_entry_point call by bfd_get_start_address.
746
9f2982ff
JK
7472010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
748
749 Support Valgrind attachments broken by the PIE support.
750 * auxv.c: Include gdbcore.h.
751 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
752 parameters ops, object and annex. Remove their assertions.
753 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
754 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
755 (memory_xfer_auxv): ... here.
756 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
757 memory_xfer_auxv.
758 * procfs.c (procfs_xfer_partial): Likewise.
759 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
760 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
761 (svr4_solib_create_inferior_hook): Conditionalize the
762 svr4_relocate_main_executable call.
763
61f0d762
JK
7642010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
765
766 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
767 target_section. Find SECT in current_target_sections, gdb_assert it.
768 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
769 New variable abfd.
770 * symtab.c (lookup_objfile_from_block): Return the binary file instead
771 of separate debug info file.
772
51bee8e9
JK
7732010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
774
775 Support PIEs with no symfile_objfile.
776 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
777 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
778
b8040f19
JK
7792010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
780
781 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
782 code part to ...
783 (svr4_static_exec_displacement): ... a new function.
784 (svr4_exec_displacement): New function.
785 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
786 new_offsets using alloca now. Remove variable old_chain and changed.
787 Call objfile_relocate unconditionally now.
788
eb90ce83
DE
7892010-01-14 Doug Evans <dje@google.com>
790
791 * gdbtypes.c (arch_flags_type): Fix comment.
792 * gdbtypes.h (arch_composite_type): Fix comment.
793
bdfed3bc
TG
7942009-01-14 Tristan Gingold <gingold@adacore.com>
795
796 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
797 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
798 to symbol_file_add_from_bfd. Add OSO as separate objfile.
799 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
800 macho_add_oso_symfile.
801 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
802
1596ad23
JB
8032010-01-14 Joel Brobecker <brobecker@adacore.com>
804
805 Tru64: Dead threads are never deleted.
806 * dec-thread.c (dec_thread_ptid_is_alive): New function.
807 (dec_thread_count_gdb_threads): Fix counter increment.
808 (dec_thread_add_gdb_thread): Fix *listp increment.
809 (resync_thread_list): Fix bug in deletion of dead threads that
810 caused all threads to be deleted, instead of just the dead ones.
811
be759fcf
PM
8122010-01-13 Phil Muldoon <pmuldoon@redhat.com>
813
814 PR python/10705
815
816 * python/python-internal.h: Add lazy_string_object_type
817 definition.
818 (create_lazy_string_object, gdbpy_initialize_lazy_string)
819 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
820 * python/py-value.c (valpy_lazy_string): New function.
821 (convert_value_from_python): Add lazy string conversion.
822 * python/py-prettyprint.c (pretty_print_one_value): Check if
823 return is also a lazy string.
824 (print_string_repr): Add lazy string printing branch.
825 (print_children): Likewise.
826 * python/py-lazy-string.c: New file. Implement lazy strings.
827 * python/python.c (_initialize_python): Call
828 gdbpy_initialize_lazy_string.
829 * varobj.c (value_get_print_value): Add lazy string printing
830 branch. Account for encoding.
831 * c-lang.c (c_printstr): Account for new encoding argument. If
832 encoding is NULL, find encoding suited for type, otherwise use
833 user encoding.
834 * language.h (language_defn): Add encoding argument.
835 (LA_PRINT_STRING): Likewise.
836 * language.c (unk_lang_printstr): Update to reflect new encoding
837 argument to language_defn.
838 * ada-lang.h (ada_printstr): Likewise.
839 * c-lang.h (c_printstr): Likewise.
840 * p-lang.h (pascal_printstr);
841 * f-lang.c (f_printstr): Likewise.
842 * m2-lang.c (m2_printstr): Likewise.
843 * objc-lang.c (objc_printstr): Likewise.
844 * p-lang.c (pascal_printstr): Likewise.
845 * scm-lang.c (scm_printstr): Likewise.
846 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
847 encoding argument.
848 * ada-valprint.c (ada_printstr): Likewise.
849 * f-valprint.c (f_val_print): Likewise
850 * m2-valprint.c (m2_val_print): Likewise.
851 * p-valprint.c (pascal_val_print): Likewise.
852 * expprint.c (print_subexp_standard): Likewise.
853 * valprint.c (val_print_string): Likewise.
854 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
855 (SUBDIR_PYTHON_SRCS): Likewise.
856 (py-lazy-string.o): New rule.
857
1fe72117 8582010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
859
860 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
861 uninitialized" warning from gcc on local `tree'.
862
dc146f7c
VP
8632010-01-13 Vladimir Prus <vladimir@codesourcery.com>
864
865 Implement core awareness.
866
867 * bcache.c (compare_ints): Remove
868 (print_percentage): Use compare_positive_ints.
869 * defs.h (compare_positive_ints): Declare.
870 * linux-nat.h (struct lin_lwp): New field core.
871 (linux_nat_core_of_thread_1): Declare.
872 * linux-nat.c (add_lwp): Init the 'core' field.
873 (linux_nat_wait_1): Record the core.
874 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
875 (linux_nat_add_target): Register the above.
876 * linux-thread-db.c (update_thread_core): New.
877 (thread_db_find_new_threads): Update core information for
878 every thread.
879 * remote.c (struct private_thread_info): New.
880 (free_private_thread_info, demand_private_info): New.
881 (PACKET_qXfer_threads, use_osdata_threads): New.
882 (struct thread_item, threads_parsing_context
883 (start_thread, end_thread, thread_attributes)
884 (thread_children, threads_children, threads_elements): New.
885 (remote_threads_info): Try qXfer:threads before anything
886 else.
887 (remote_protocol_packets): Register qXfer:threads.
888 (remote_open_1): Init use_osdata_threads.
889 (struct stop_reply): New field 'core'.
890 (remote_parse_stop_reply): Parse core number.
891 (process_stop_reply): Record core number.
892 (remote_xfer_partial): Handle qXfer:threads.
893 (remote_core_of_thread): New.
894 (init_remote_ops): Register remote_core_of_thread.
895 (_initialize_remote): Register qXfer:read.
896 * target.c (target_core_of_thread): New
897 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
898 (struct target_ops): New field to_core_of_threads.
899 (target_core_of_thread): Declare.
900 * gdbthread.h (struct thread_info): New field private_dtor.
901 * thread.c (print_thread_info): Report the core.
902 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
903 * utils.c (compare_positive_ints): New.
904 * features/threads.dtd: New.
905 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
906 * mi/mi-main.c (struct collect_cores_data, collect_cores)
907 (do_nothing, free_vector_of_osdata_items)
908 (splay_tree_int_comparator, free_splay_tree): New.
909 (print_one_inferior_data): Implemented printing of selected
910 inferiors. Collect and print cores.
911 (output_cores): New.
912 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
913 thread groups together with --available.
914
d30c5336
JK
9152010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
916
917 * configure: Regenerate (for _STRUCTURED_PROC).
918
02893727
JB
9192010-01-12 Joel Brobecker <brobecker@adacore.com>
920
921 Delete dead function.
922 * ada-lang.c (extract_string): Delete. No longer used.
923
46ed2d6f
JB
9242010-01-12 Joel Brobecker <brobecker@adacore.com>
925
926 Fix -Wunused warning in dec-thread.c.
927 * dec-thread.c (dec_thread_count_gdb_threads)
928 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
929
606b8d1a
JB
9302010-01-12 Joel Brobecker <brobecker@adacore.com>
931
932 * ada-valprint.c (ada_print_floating): Remove trailing space.
933
b4ba55a1
JB
9342010-01-12 Joel Brobecker <brobecker@adacore.com>
935
936 Add support for DW_AT_GNAT_descriptive_type.
937 * gdbtypes.h (enum type_specific_kind): New enum.
938 (struct main_type) [type_specific_field]: New component.
939 [type_specific]: Add new component "gnat_stuff".
940 (struct gnat_aux_type): New type.
941 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
942 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
943 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
944 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
945 (TYPE_SPECIFIC_FIELD): New macros.
946 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
947 type does not hold any cplus-specific data.
948 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
949 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
950 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
951 cplus-specific data.
952 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
953 Set new component TYPE_SPECIFIC_FIELD (type).
954 (gnat_aux_default): New constant.
955 (allocate_gnat_aux_type): New function.
956 (init_type): Add initialization the type-specific stuff for
957 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
958 (print_gnat_stuff): New function.
959 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
960 specific data. Adjust code that prints the contents of the
961 type-specific union using the TYPE_SPECIFIC_FIELD value.
962 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
963 the type cplus stuff for Ada types.
964 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
965 Error out if these routines are called with an Ada type.
966 (read_structure_type, read_array_type, read_subrange_type):
967 Add call to set_descriptive_type.
968 (set_die_type): Initialize the gnat-specific data if necessary.
969 (need_gnat_info, die_descriptive_type, set_descriptive_type):
970 New functions.
971 * ada-lang.c (decode_constrained_packed_array_type): Use
972 decode_constrained_packed_array_type instead of doing a standard
973 lookup to locate a parallel type.
974 (find_parallel_type_by_descriptive_type): New function.
975 (ada_find_parallel_type_with_name): New function.
976 (ada_find_parallel_type): Reimplement using
977 ada_find_parallel_type_with_name.
978 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
979 to check if type has a cplus stuff.
980 * linespec.c (total_number_of_methods): Likewise.
981 * mdebugread.c (new_type): Likewise.
982
b0f02ee9
JK
9832010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
984
985 * NEWS: Document the 0b binary number prefix parsing.
986
b260e109
JK
9872010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
988
989 * objfiles.c (objfile_relocate1): Change the return type to int.
990 Describe the new return value. Return non-zero if data changed.
991 (objfile_relocate): New variable changed. Set it. Call
992 breakpoint_re_set depending on CHANGED.
993
b5cfddf5
JK
9942010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
995
996 Implement binary numbers parsing.
997 * c-exp.y (parse_number): New case 'b' and 'B'.
998
e0ae4240
JK
9992010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1000 Tristan Gingold <gingold@adacore.com>
1001
1002 * solib.c (info_sharedlibrary_command): Replace
1003 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1004 objfile_has_symbols.
1005
6e0e5977
JB
10062010-01-10 Joel Brobecker <brobecker@adacore.com>
1007
1008 * NEWS: Document the improvements made to the mips-irix port.
1009
7348c5e1
JB
10102010-01-09 Joel Brobecker <brobecker@adacore.com>
1011
1012 Fix the documentation of valprint.c:value_print.
1013 * valprint.c (value_print): Update the function description to
1014 mention that the syntax of the output follows the current_language,
1015 not necessarily C.
1016
567995e1
JK
10172010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1018
1019 Fix displacement of separate debug info files.
1020 * objfiles.c (objfile_relocate): Rename to ...
1021 (objfile_relocate1): ... here and make it static. Extend the comment.
1022 (objfile_relocate): New function.
1023 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1024 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1025 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1026 allocated using alloca.
1027 * symfile.c (copy_section_addr_info): Remove.
1028 (build_section_addr_info_from_objfile): Make it global. New variables
1029 addr_bit and mask, use them.
1030 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1031 (copy_section_addr_info): Remove.
1032
6d8eadbd
JB
10332010-01-09 Joel Brobecker <brobecker@adacore.com>
1034
1035 Signal unwinder for mips-irix N32.
1036 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1037 tramp-frame.h.
1038 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1039 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1040 (SIGCONTEXT_LO_OFF): New macros.
1041 (mips_irix_n32_tramp_frame_init): New function.
1042 (mips_irix_n32_tramp_frame): New static constant.
1043 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1044
27087a3d
JB
10452010-01-09 Joel Brobecker <brobecker@adacore.com>
1046
1047 Breakpoint in shared library does not work on mips-irix.
1048 * procfs.c: #include "observer.h".
1049 (procfs_inferior_created): New function, moving here the code
1050 which unsets the syssgi syscall-exit notifications.
1051 (procfs_create_inferior): Remove the code which unsets the syssgi
1052 syscall-exit notifications. It is too early to do this here.
1053 (_initialize_procfs): Attach the procfs_inferior_created observer.
1054
f08877ba
JB
10552010-01-09 Joel Brobecker <brobecker@adacore.com>
1056
1057 Wrong return convention for arrays (mips-irix).
1058 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1059 128 bits or smaller are returned the same way as structs
1060 and unions of the the same size.
1061
e4b97d48
JB
10622010-01-09 Joel Brobecker <brobecker@adacore.com>
1063
1064 Cannot set the PC on mips-irix.
1065 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1066 register number, no the cooked one.
1067
11377e68
JB
10682010-01-09 Joel Brobecker <brobecker@adacore.com>
1069
1070 Error while loading core file on mips-irix.
1071 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1072 if debugging from a core file.
1073
b2391021
JB
10742010-01-09 Joel Brobecker <brobecker@adacore.com>
1075
1076 GDB hangs when attaching to process on mips-irix.
1077 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1078 attaching to a process.
1079
f2ec0ecf
JB
10802010-01-09 Joel Brobecker <brobecker@adacore.com>
1081
1082 Use the correct breakpoint instruction on mips-irix.
1083 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1084 containing the correct breakpoint instruction to use on mips-irix.
1085 Use it when the osabi is GDB_OSABI_IRIX.
1086
3c95f01c
JB
10872010-01-09 Joel Brobecker <brobecker@adacore.com>
1088
1089 -Wunused warning in procfs.c (mips-irix only).
1090 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1091 throughout instead of using praddset and prdelset respectively.
1092
4b7703ad
JB
10932010-01-09 Joel Brobecker <brobecker@adacore.com>
1094
1095 GDB crash while stepping into function.
1096 * infrun.c (handle_inferior_event): Refetch the current frame
1097 after handling what.main_action, in case that pointer became
1098 dangling.
1099
12c89474
JB
11002010-01-09 Joel Brobecker <brobecker@adacore.com>
1101
1102 Fix build failure of solaris-hosted cross debuggers.
1103 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1104
1a3fd262 11052010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
1106
1107 Fix build failure on sparc-solaris.
1108 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1109
75242ef4
JK
11102010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1111
1112 Move some symfile code into subroutines.
1113 * symfile.h (relative_addr_info_to_section_offsets)
1114 (addr_info_make_relative): New prototypes.
1115 * symfile.c (default_symfile_offsets): Move a part to ...
1116 (relative_addr_info_to_section_offsets): ... this new function.
1117 (default_symfile_offsets): Call it.
1118 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1119 this part to ...
1120 (addr_info_make_relative): ... this new function.
1121
268a4a75
JK
11222010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1123
1124 Add from_tty to solib_create_inferior_hook.
1125 * infcmd.c (post_create_inferior): Move solib_add after
1126 solib_create_inferior_hook. Pass from_tty to
1127 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1128 0 from_tty and comment why.
1129 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1130 * linux-nat.c (linux_child_follow_fork): Likewise.
1131 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1132 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1133 from_tty.
1134 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1135 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1136 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1137 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1138 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1139 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1140 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1141 Pass it to svr4_so_ops.solib_create_inferior_hook.
1142 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1143 from_tty.
1144 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1145 solib_add.
1146 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1147 enable_break.
1148 * solib-target.c (solib_target_solib_create_inferior_hook): New
1149 parameter from_tty.
1150 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1151 it to ops->solib_create_inferior_hook.
1152 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1153 Move solib_add after solib_create_inferior_hook, call it now with
1154 from_tty as 0. New comment there.
1155 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1156 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1157 Likewise.
1158
cf00dfa7
VP
11592010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1160
1161 Fix multiexec race.
1162 * infrun.c (handle_inferior_event): Use get_thread_regcache
1163 with events ptid, not get_current_regcache.
1164
f91e5ac3
JB
11652009-01-08 Joel Brobecker <brobecker@adacore.com>
1166
1167 GDB crash with empty executable name (MinGW).
1168 * source.c (openp): Add assert that parameter string is not NULL.
1169 if parameter string is an empty string, then return with a failure
1170 immediately.
1171
92b9ce5b
JB
11722009-01-08 Joel Brobecker <brobecker@adacore.com>
1173
1174 Get rid of support for VAX Floats.
1175 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1176 (ada_vax_float_print_function): Delete.
1177 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1178 (ada_vax_float_print_function): Delete.
1179 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1180 (ada_print_type): Remove support for VAX floats.
1181 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1182
268a4a75 11832010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
1184
1185 * stabsread.c (read_args): Handle zero arguments.
1186
f0f20949
JB
11872009-01-08 Joel Brobecker <brobecker@adacore.com>
1188
1189 Cannot find in-tree libiconv.a after reconfigure.
1190 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1191 that we can use, then cache the path to this archive.
1192 * configure: Regenerate.
1193
6b6218c5
SS
11942010-01-07 Stan Shebs <stan@codesourcery.com>
1195
35b1e5cc
SS
1196 Make tracepoint operations go through target vector.
1197 * target.h (enum trace_find_type): New enum.
1198 (struct target_ops): New fields to_trace_init,
1199 to_download_tracepoint, to_download_trace_state_variable,
1200 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1201 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1202 to_set_disconnected_tracing.
1203 (target_trace_init): New macro.
1204 (target_download_tracepoint): New macro.
1205 (target_download_trace_state_variable): New macro.
1206 (target_trace_start): New macro.
1207 (target_trace_set_readonly_regions): New macro.
1208 (target_get_trace_status): New macro.
1209 (target_trace_stop): New macro.
1210 (target_trace_find): New macro.
1211 (target_get_trace_state_variable_value): New macro.
1212 (target_set_disconnected_tracing): New macro.
1213 * target.c (update_current_target): Inherit and set defaults for
1214 tracepoint operations.
1215 * tracepoint.c (default_collect): Make globally visible.
1216 (target_is_remote): Remove, along with all calls.
1217 (tvariables_info): Call target_get_trace_state_variable_value.
1218 (remote_set_transparent_ranges): Remove.
1219 (trace_start_command): Call target_trace_init,
1220 target_download_tracepoint, etc.
1221 (download_tracepoint): Remove.
1222 (trace_stop_command): Simplify.
1223 (stop_tracing): Call target_trace_stop.
1224 (get_trace_status): Call target_get_trace_status.
1225 (trace_status_command): Add case for targets that cannot trace.
1226 (finish_tfind_command): Change to take numerical arguments, call
1227 target_trace_find.
1228 (trace_find_command): Update call to finish_tfind_command.
1229 (trace_find_pc_command): Ditto.
1230 (trace_find_tracepoint_command): Ditto.
1231 (trace_find_line_command): Ditto.
1232 (trace_find_range_command): Ditto.
1233 (trace_find_outside_command): Ditto.
1234 (set_disconnected_tracing_value): Call
1235 target_set_disconnected_tracing.
1236 * remote.c: Add protocol encoding bits from tracepoint.c.
1237 (trace_error): Move from tracepoint.c.
1238 (remote_get_noisy_reply): Ditto.
1239 (free_actions_list_cleanup_wrapper): Ditto.
1240 (free_actions_list): Ditto.
1241 (remote_trace_init): New function.
1242 (remote_download_tracepoint): New function.
1243 (remote_download_trace_state_variable): New function.
1244 (remote_trace_set_readonly_regions): New function.
1245 (remote_trace_start): New function.
1246 (remote_get_trace_status): New function.
1247 (remote_trace_stop): New function.
1248 (remote_trace_find): New function.
1249 (remote_download_trace_state_variable): New function.
1250 (remote_set_disconnected_tracing): New function.
1251 (init_remote_ops): Add tracepoint operations.
1252
6b6218c5
SS
1253 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1254
089b4803
TG
12552010-01-07 Tristan Gingold <gingold@adacore.com>
1256
1257 * symfile.c (build_section_addr_info_from_objfile): New function.
1258 (symbol_file_add_separate): Don't use offsets from objfile but
1259 built an addr info.
1260
d5551862
SS
12612010-01-06 Stan Shebs <stan@codesourcery.com>
1262
1263 Support disconnected tracing.
1264 * infcmd.c (detach_command): Ask whether to stop tracing.
1265 * cli/cli-cmds.c (quit_command): Ditto.
1266 * breakpoint.h (struct breakpoint): New field number_on_target.
1267 * breakpoint.c (create_tracepoint_from_upload): New function.
1268 (get_tracepoint_by_number_on_target): New function.
1269 * remote.c (struct remote): New field disconnected_tracing.
1270 (remote_disconnected_tracing_feature): New function.
1271 (remote_protocol_features): Add DisconnectedTracing.
1272 (struct uploaded_tp): New struct.
1273 (uploaded_tps): New global.
1274 (get_uploaded_tp): New function.
1275 (find_matching_tracepoint): New function.
1276 (remote_get_tracing_state): New function.
1277 (remote_start_remote): Call it.
1278 * tracepoint.c (disconnected_tracing): New global.
1279 (trace_start_command): Initialize number_on_target.
1280 (stop_tracing): New function, split out from...
1281 (trace_stop_command): Call stop_tracing.
1282 (get_trace_status): New function, split out from...
1283 (trace_status_command): Call get_trace_status, add info on
1284 disconnection behavior.
1285 (disconnect_or_stop_tracing): New function.
1286 (finish_tfind_command): Translate from number on target.
1287 (trace_find_tracepoint_command): Translate to number on target.
1288 (send_disconnected_tracing_value): New function.
1289 (set_disconnected_tracing): New function.
1290 (_initialize_tracepoint): Add disconnected-tracing variable.
1291 * NEWS: Mention disconnected tracing.
1292
15d123c9
TG
12932010-01-06 Tristan Gingold <gingold@adacore.com>
1294
1295 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1296 parameter to main_objfile. Iterate on all separate debug objfiles.
1297 * symfile.h (symbol_file_add_separate)
1298 (find_separate_debug_file_by_debuglink): Remove parameter names.
1299 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1300 (reread_symbols): Use free_objfile_separate_debug.
1301 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1302 Adjust comment.
1303 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1304 (free_objfile_separate_debug): New prototypes.
1305 * objfiles.c (objfile_separate_debug_iterate): New function.
1306 (add_separate_debug_objfile, free_objfile_separate_debug): New
1307 functions.
1308 (free_objfile): Use free_objfile_separate_debug. Adjust for
1309 multiple separate debug objfile.
1310 (objfile_has_symbols): Adjust comment. Iterate on all separate
1311 debug objfiles.
1312 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1313 debug objfile.
1314 (lookup_minimal_symbol_text): Ditto.
1315 (lookup_minimal_symbol_by_pc_name): Ditto.
1316 (lookup_minimal_symbol_solib_trampoline): Ditto.
1317 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
1318 debug objfiles.
1319
7a697b8d
SS
13202010-01-05 Stan Shebs <stan@codesourcery.com>
1321
1322 Add fast tracepoints.
1323 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
1324 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
1325 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
1326 * breakpoint.c (tracepoint_type): New function.
1327 (ALL_TRACEPOINTS): Use it.
1328 (should_be_inserted): Ditto.
1329 (bpstat_check_location): Ditto.
1330 (print_one_breakpoint_location): Ditto.
1331 (user_settable_breakpoint): Ditto.
1332 (set_breakpoint_location_function): Ditto.
1333 (disable_breakpoints_in_shlibs): Ditto.
1334 (delete_trace_command): Ditto.
1335 (print_it_typical): Add bp_fast_tracepoint case.
1336 (bpstat_what): Ditto.
1337 (print_one_breakpoint_location): Ditto.
1338 (allocate_bp_location): Ditto.
1339 (mention): Ditto.
1340 (breakpoint_re_set_one): Ditto.
1341 (disable_command): Ditto.
1342 (enable_command): Ditto.
1343 (check_fast_tracepoint_sals): New function.
1344 (break_command_really): Call it.
1345 (ftrace_command): New function.
1346 (_initialize_breakpoint): Add ftrace command.
1347 * gdbarch.sh (fast_tracepoint_valid_at): New.
1348 * gdbarch.h, gdbarch.c: Regenerate.
1349 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
1350 (i386_gdbarch_init): Use it.
1351 * remote.c (struct remote_state): New field fast_tracepoints.
1352 (PACKET_FastTracepoints): New packet config type.
1353 (remote_fast_tracepoint_feature): New function.
1354 (remote_protocol_features): Add FastTracepoints.
1355 (remote_supports_fast_tracepoints): New function.
1356 (_initialize_remote): Add FastTracepoints.
1357 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
1358 * NEWS: Mention fast tracepoints.
1359
737a160e
JB
13602010-01-06 Joel Brobecker <brobecker@adacore.com>
1361
1362 * gdb-gdb.py: New file.
1363
ce6cca6d
MS
13642010-01-05 Michael Snyder <msnyder@vmware.com>
1365
1366 * infrun.c (handle_inferior_event): Fix typo in comment.
1367
0d15807d
JK
13682010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1369
1370 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
1371
7803799a
UW
13722010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1373
1374 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
1375 and s390x-linux64.
1376 (s390-linux32-expedite): Define.
1377 (s390-linux64-expedite): Define.
1378 (s390x-linux64-expedite): Define.
1379 * features/s390-acr.xml: New file.
1380 * features/s390-fpr.xml: New file.
1381 * features/s390-core32.xml: New file.
1382 * features/s390-core64.xml: New file.
1383 * features/s390x-core64.xml: New file.
1384 * features/s390-linux32.xml: New file.
1385 * features/s390-linux64.xml: New file.
1386 * features/s390x-linux64.xml: New file.
1387 * features/s390-linux32.c: New generated file.
1388 * features/s390-linux64.c: New generated file.
1389 * features/s390x-linux64.c: New generated file.
1390
1391 * regformats/s390-linux32.dat: New generated file.
1392 * regformats/s390-linux64.dat: New generated file.
1393 * regformats/s390x-linux64.dat: New generated file.
1394 * regformats/reg-s390.dat: Remove.
1395 * regformats/reg-s390x.dat: Remove.
1396
1397 * s390-nat.c: Include "auxv.h" and <elf.h>.
1398 (HWCAP_S390_HIGH_GPRS): Define if undefined.
1399 (s390_target_wordsize): New function.
1400 (s390_auxv_parse): Likewise.
1401 (s390_get_hwcap): Likewise.
1402 (s390_read_description): Likewise.
1403 (_initialize_s390_nat): Install s390_auxv_parse and
1404 s390_read_description.
1405
1406 * s390-tdep.c: Include "features/s390-linux32.c",
1407 "features/s390-linux64.c", and "features/s390x-linux64.c".
1408 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
1409 (s390_register_call_saved): New function.
1410 (s390_register_name): Remove.
1411 (s390_register_type): Remove.
1412 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
1413 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
1414 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
1415 (s390_pseudo_register_name): New function.
1416 (s390_pseudo_register_type): New function.
1417 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
1418 Handle full GPR pesudos and varying pseudo register numbers.
1419 (s390_pseudo_register_write): Likewise
1420 (s390x_pseudo_register_read): Remove.
1421 (s390x_pseudo_register_write): Likewise.
1422 (s390_register_group): Remove.
1423 (s390_pseudo_register_group): New function.
1424 (s390_regmap_gregset): Add GPR upper halves.
1425 (s390x_regmap_gregset): Likewise.
1426 (s390_regmap_fpregset): Likewise.
1427 (s390_regmap_upper): New global variable.
1428 (s390_upper_regset): New global variable.
1429 (s390_upper_regset_sections): New global variable.
1430 (s390_regset_from_core_section): Handle GPR upper halves.
1431 (s390_core_read_description): New function.
1432 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1433 register information. Handle varying pseudo register numbers.
1434 (s390_backchain_frame_unwind_cache): Likewise.
1435 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1436 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1437 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1438 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1439 Handle varying pseudo register numbers.
1440 (s390_unwind_pc): Handle varying pseudo register numbers.
1441 (s390_dwarf2_prev_register): New function.
1442 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1443 register information. Handle varying pseudo register numbers.
1444 Install s390_dwarf2_prev_register to unwind full GPRs.
1445 (s390_gdbarch_init): Handle target descriptions. Assign varying
1446 pseudo register numbers. Install s390_adjust_frame_regnum.
1447 (_initialize_s390_tdep): Initialize target descriptions.
1448
1449 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1450 (S390_NUM_REGS): Redefine to include upper half registers.
1451 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1452 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1453 (tdesc_s390_linux32): Add declaration.
1454 (tdesc_s390_linux64): Likewise.
1455 (tdesc_s390x_linux64): Likewise.
1456
1b1818e4
UW
14572010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1458
1459 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1460 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1461 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1462 (ppc_linux_vmx_regset_sections): Likewise.
1463 (ppc_linux_fp_regset_sections): Likewise.
1464
1465 * corelow.c (get_core_register_section): Constify arguments.
1466 (get_core_registers): Use gdbarch_core_regset_sections instead
1467 of hard-coded platform-specific register section names.
1468
dcbf108f
UW
14692010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1470
1471 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 1472 a register, assume the least-significant part is used.
dcbf108f
UW
1473 (write_pieced_value): Likewise.
1474
704e9165
UW
14752010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1476
1477 * printcmd.c: Include "arch-utils.h".
1478 (do_one_display): Re-parse expression if current architecture changed.
1479
c54eabfa
JK
14802010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1481 Joel Brobecker <brobecker@adacore.com>
1482
1483 * gdbtypes.c (check_typedef): New comment on type length.
1484 * value.c (allocate_value_lazy): Remove the unused atype variable. New
1485 comment on type length.
1486 (value_primitive_field): Keep the original TYPE value, new comment.
1487
50cb2941
JK
14882010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1489
1490 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1491 p_start. Change != comparisons to > and < comparisons.
1492
be66db07
JK
14932010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1494
1495 * cli/cli-script.c (process_next_line): Check P2 overrun.
1496
abd775ce
JB
14972009-01-01 Joel Brobecker <brobecker@adacore.com>
1498
1499 Update the copyright hearder to add year 2010 for most GDB files.
1500
6479260d
JB
15012009-01-01 Joel Brobecker <brobecker@adacore.com>
1502
1503 Fix build failure in inf-ptrace.c.
1504 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1505
4a70f654
JB
15062010-01-01 Joel Brobecker <brobecker@adacore.com>
1507
1508 * top.c (print_gdb_version): Update copyright year.
1509
b9ee2233
JB
15102010-01-01 Joel Brobecker <brobecker@adacore.com>
1511
1512 Fix break *FUN'address thread NUM.
1513 * ada-lex.l (task): Expand rule to also match the thread keyword.
1514
70575d34
JB
15152010-01-01 Joel Brobecker <brobecker@adacore.com>
1516
1517 Fix break *FUN'address task NUM.
1518 * ada-lex.l (task): New rule.
1519 * ada-lang.c (valid_task_id): Make sure the Ada task list has
1520 been built before using it.
1521
e1e4d4a4 1522For older changes see ChangeLog-2009.
c906108c
SS
1523\f
1524Local Variables:
1525mode: change-log
1526left-margin: 8
1527fill-column: 74
1528version-control: never
57da7796 1529coding: utf-8
c906108c 1530End:
This page took 1.356252 seconds and 4 git commands to generate.