Get rid of ada-lang.c:function_name_from_pc.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
692465f1
JB
12010-01-20 Joel Brobecker <brobecker@adacore.com>
2
3 Get rid of ada-lang.c:function_name_from_pc.
4 * ada-lang.c: Add "stack.h" #include.
5 (function_name_from_pc): Delete.
6 (is_known_support_routine): Replace call to function_name_from_pc
7 by call to find_frame_funname.
8 (ada_unhandled_exception_name_addr_from_raise): Likewise.
9
95519e0e
TT
102010-01-19 Tom Tromey <tromey@redhat.com>
11
12 PR c++/11026:
13 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
14 objfile obstack.
15
95c11dc7
TT
162010-01-19 Tom Tromey <tromey@redhat.com>
17
18 * top.c (stop_sig, float_handler, do_nothing): Remove.
19
a0f49112
JK
202010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
21
22 * breakpoint.c (watchpoint_check): Check the call
23 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
24 Extend the comment.
25 * config/djgpp/fnchange.lst: Add translations for
26 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
27 watchpoint-cond-gone-stripped.c.
28
ceeb3d5a
TT
292010-01-19 Tom Tromey <tromey@redhat.com>
30
31 PR c++/8000:
32 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
33 into parent scope, and enumerator into grandparent scope.
34
2b71fc8e
JB
352010-01-19 Joel Brobecker <brobecker@adacore.com>
36
37 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
38
03564ed9
JB
392010-01-19 Joel Brobecker <brobecker@adacore.com>
40
41 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
42 i[34567]86-*-solaris2.1[0-9]*.
43 * configure.tgt: Likewise.
44
fb2e7cb4
JB
452010-01-19 Joel Brobecker <brobecker@adacore.com>
46
47 * NEWS: Document the source command enhancement allowing it
48 to load Python scripts. Document the "set/show script-extension"
49 commands.
50
1cb5e2a4
JB
512010-01-19 Joel Brobecker <brobecker@adacore.com>
52
53 Add -Wunused-function to compile flags.
54 * configure.ac: Add -Wunused-function to build_warnings.
55 * configure: Regenerate.
56
0ec6cd0c
JB
572010-01-19 Joel Brobecker <brobecker@adacore.com>
58
59 "delete" ada-lex.c:input function, not used.
60 * ada-lex.l: #define YY_NO_INPUT.
61
b74845da
JB
622010-01-19 Joel Brobecker <brobecker@adacore.com>
63
64 Delete free_named_symtabs and associated cleanup.
65 * symfile.h (free_named_symtabs): Delete declaration.
66 * symfile.c: Remove some commented out code (clear_symtab_users_once).
67 (cashier_psymtab): Comment function out.
68 Delete declaration.
69 (free_named_symtabs): Delete.
70 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
71 * dbxread.c (end_psymtab): Likewise.
72 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
73 * exec.c (exec_close_1): Ditto.
74 * xcoffread.c (xcoff_end_psymtab): Likewise.
75
65c06092
JB
762010-01-19 Joel Brobecker <brobecker@adacore.com>
77
78 * stack.c (print_block_frame_labels): Comment function out.
79
d5cd6034
JB
802010-01-19 Joel Brobecker <brobecker@adacore.com>
81
82 Delete unused or undefined functions.
83 * breakpoint.c (ep_parse_optional_filename): Delete.
84 * dcache.c (dcache_write_line): Remove declaration.
85 * infrun.c (build_infrun): Remove declaration.
86 * tracepoint.c (tracepoint_save_command): Remove declaration.
87 * linux-nat.c (init_lwp_list): Delete. No longer used.
88 * event-loop.c (check_async_signal_handlers): Delete declaration.
89 * infrun.c (init_execution_control_state): Delete.
90 (proceed): Update comment to avoid mentioning
91 init_execution_control_state.
92 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
93 * ada-lang.c (ada_to_static_fixed_value): Delete.
94 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
95 * cp-namespace.c (cp_copy_usings): Delete.
96 * xml-syscall.c (xml_number_of_syscalls): Delete.
97 * progspace.c (find_program_space_by_num): Delete.
98 * inflow.c (handle_sigio): Delete declaration.
99 * hppa-tdep.c (hppa_alignof): Delete.
100 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
101 (mipsnbsd_core_osabi_sniffer): Delete.
102
4e8f195d
TT
1032010-01-18 Tom Tromey <tromey@redhat.com>
104
105 PR c++/9680:
106 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
107 (CONST_CAST): New tokens.
108 (exp): Add new productions.
109 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
110 reinterpret_cast.
111 (is_cast_operator): New function.
112 (yylex): Handle cast operators specially.
113 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
114 UNOP_REINTERPRET_CAST>: New cases.
115 * expprint.c (print_subexp_standard): Likewise.
116 (op_name_standard): Likewise.
117 (dump_subexp_body_standard): Likewise.
118 * parse.c (operator_length_standard): Likewise.
119 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
120 UNOP_REINTERPRET_CAST.
121 * gdbtypes.c (class_types_same_p): New function.
122 (is_ancestor): Use it.
123 (is_public_ancestor): New function.
124 (is_unique_ancestor_worker): Likewise.
125 (is_unique_ancestor): Likewise.
126 * gdbtypes.h (class_types_same_p, is_public_ancestor)
127 (is_unique_ancestor): Declare.
128 * valops.c (value_reinterpret_cast): New function.
129 (dynamic_cast_check_1): Likewise.
130 (dynamic_cast_check_2): Likewise.
131 (value_dynamic_cast): Likewise.
132 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
133
d9c57d9f
JB
1342010-01-18 Joel Brobecker <brobecker@adacore.com>
135
136 Fix build failure when building without Python support.
137 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
138 is not defined.
139
f80d3ff2
JB
1402010-01-18 Joel Brobecker <brobecker@adacore.com>
141
142 Use XVS field type instead of doing a parallel lookup.
143 * ada-lang.c (ada_get_base_type): Follow the XVS field type
144 if it is a reference type instead of doing a type lookup using
145 the XVS field name.
146
5bf03f13
JB
1472010-01-18 Joel Brobecker <brobecker@adacore.com>
148
149 Trust PAD types instead of using PAD___XVS.
150 * ada-lang.c (trust_pad_over_xvs): New static variable.
151 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
152 parallel XVS type, follow the XVS type instead of the PAD type.
153 (unwrap_value): Make sure that there is no parallel XVE type
154 before returning the value as is.
155 (set_ada_list, show_ada_list): New static variables.
156 (set_ada_command, show_ada_command): New functions.
157 (_initialize_ada_language): Add new "set/show ada" prefix commands.
158 Add new "set/show ada trust-PAD-over-XVS" setting.
159
973817a3
JB
1602010-01-18 Tom Tromey <tromey@redhat.com>
161 Thiago Jung Bauermann <bauerman@br.ibm.com>
162
163 Allow "source" to load python scripts.
164 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
165 * python/python.c (source_python_script): New function.
166 * python/python.h (source_python_script): Add declaration.
167 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
168 (script_ext_off, script_ext_soft, script_ext_strict)
169 (script_ext_enums, script_ext_mode): New static constants.
170 (show_script_ext_mode, find_and_open_script): New functions.
171 (source_script): Enhance to handle Python scripts.
172 (init_cli_cmds): Add set/show script-extension commands.
173
98e03262
SS
1742010-01-16 Stan Shebs <stan@codesourcery.com>
175
176 * tracepoint.h (struct trace_status): Use unsigned long long
177 instead of size_t.
178 * tracepoint.c (trace_status_command): Fix printf directive.
179 (trace_save_command): Check fwrite returns, fix printf directive.
180 (trace_filename): New global.
181 (tfile_open): Set it, check read returns.
182 (tfile_close): Free trace_filename.
183 (tfile_get_traceframe_address): Check read returns.
184 (tfile_trace_find): Ditto.
185 (tfile_fetch_registers): Ditto.
186 (tfile_xfer_partial): Ditto.
187 (tfile_get_trace_state_variable_value): Ditto.
188
00bf0b85
SS
1892010-01-15 Stan Shebs <stan@codesourcery.com>
190
191 Add trace file support.
192 * tracepoint.h (enum trace_stop_reason): New enum.
193 (struct trace_status): New struct.
194 (parse_trace_status): Declare.
195 (struct uploaded_tp): Move here from remote.c,
196 add fields for actions.
197 (struct uploaded_tsv): New struct.
198 * tracepoint.c (tfile_ops): New target vector.
199 (trace_fd): New global.
200 (tfile_open): New function.
201 (tfile_close): New function.
202 (tfile_files_info): New function.
203 (tfile_get_trace_status): New function.
204 (tfile_get_traceframe_address): New function.
205 (tfile_trace_find): New function.
206 (tfile_fetch_registers): New function.
207 (tfile_xfer_partial): New function.
208 (tfile_get_trace_state_variable_value): New function.
209 (init_tfile_ops): New function.
210 (_initialize_tracepoint): Call it, add tfile target.
211 (trace_status): New global.
212 (current_trace_status): New function.
213 (trace_running_p): Remove, change all users to get from
214 current_trace_status()->running.
215 (get_trace_status): Remove.
216 (trace_status_command): Call target_get_trace_status directly,
217 report more detail including tracing stop reasons.
218 (trace_find_command): Always allow tfind on a file.
219 (trace_find_pc_command): Ditto.
220 (trace_find_tracepoint_command): Ditto.
221 (trace_find_line_command): Ditto.
222 (trace_find_range_command): Ditto.
223 (trace_find_outside_command): Ditto.
224 (trace_frames_offset, cur_offset): Declare as off_t.
225 (trace_regblock_size): Rename from reg_size, update users.
226 (parse_trace_status): New function.
227 (tfile_interp_line): New function.
228 (disconnect_or_stop_tracing): Ensure current trace
229 status before asking what to do.
230 (stop_reason_names): New global.
231 (trace_save_command): New command.
232 (get_uploaded_tp): Move here from remote.c.
233 (find_matching_tracepoint): Ditto.
234 (merge_uploaded_tracepoints): New function.
235 (parse_trace_status): Use stop_reason_names.
236 (_initialize_tracepoint): Define tsave command.
237 * target.h (target_ops): New fields to_save_trace_data,
238 to_upload_tracepoints, to_upload_trace_state_variables,
239 to_get_raw_trace_data, change to_get_trace_status
240 to take a pointer to a status struct.
241 (target_save_trace_data): New macro.
242 (target_upload_tracepoints): New macro.
243 (target_upload_trace_state_variables): New macro.
244 (target_get_raw_trace_data): New macro.
245 * target.c (update_current_target): Add new methods, change
246 signature of to_get_trace_status.
247 * remote.c (hex2bin): Make globally visible.
248 (bin2hex): Ditto.
249 (remote_download_trace_state_variable): Download name also.
250 (remote_get_trace_status): Update parameter, use
251 parse_trace_status.
252 (remote_save_trace_data): New function.
253 (remote_upload_tracepoints): New function.
254 (remote_upload_trace_state_variables): New function.
255 (remote_get_raw_trace_data): New function.
256 (remote_start_remote): Use them.
257 (_initialize_remote_ops): Add operations.
258 * ax-gdb.c: Include breakpoint.h.
259 * breakpoint.c (create_tracepoint_from_upload): Use
260 break_command_really, return tracepoint, warn about unimplemented
261 parts.
262 * NEWS: Mention trace file addition.
263
d904de5b
JK
2642010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
265
266 Fix compilation warning on gcc-3.4.
267 * exec.c (print_section_info): Move the `displacement' variable
268 initialization to its declaration.
269
64aa9731
JK
2702010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
271
272 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
273 comparison.
274
ca1f5def 2752010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
276
277 "info tasks" broken by typedefs in ATCB type definitions.
278 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
279 ada_check_typedef before retrieving the length of the type for
280 regular fields.
281
12ab9e09
JB
2822010-01-15 Joel Brobecker <brobecker@adacore.com>
283
284 Do not use name-based lookup for unconstrained packed arrays.
285 * ada-lang.c (find_parallel_type_by_descriptive_type):
286 Limit the fallback to name-based lookups to the case where
287 the type is a constrained packed array.
288
c389c3dc
JB
2892010-01-15 Joel Brobecker <brobecker@adacore.com>
290
291 Enhance gdb-gdb.py to handle main_type.type_specific.
292 * gdb-gdb.py: Print the type-specific part of struct main_type.
293
7991dee7
JK
2942010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
295
296 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
297 * configure: Regenerate.
298 * config.in: Regenerate.
299 * utils.c: Include sys/resource.h.
300 (dump_core, can_dump_core): New.
301 (internal_vproblem): Update the comment. Check can_dump_core while
302 setting dump_core_p. Replace two abort calls by dump_core calls.
303
93c26624
JK
3042010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
305 Eli Zaretskii <eliz@gnu.org>
306
307 * NEWS: Document the PIE support.
308
55235ad7
JK
3092010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
310
311 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
312 (check_is_pie_binary, _initialize_linux_tdep): Remove.
313
41752192
JK
3142010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
315
316 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
317 Replace exec_entry_point call by bfd_get_start_address.
318
9f2982ff
JK
3192010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
320
321 Support Valgrind attachments broken by the PIE support.
322 * auxv.c: Include gdbcore.h.
323 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
324 parameters ops, object and annex. Remove their assertions.
325 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
326 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
327 (memory_xfer_auxv): ... here.
328 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
329 memory_xfer_auxv.
330 * procfs.c (procfs_xfer_partial): Likewise.
331 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
332 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
333 (svr4_solib_create_inferior_hook): Conditionalize the
334 svr4_relocate_main_executable call.
335
61f0d762
JK
3362010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
337
338 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
339 target_section. Find SECT in current_target_sections, gdb_assert it.
340 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
341 New variable abfd.
342 * symtab.c (lookup_objfile_from_block): Return the binary file instead
343 of separate debug info file.
344
51bee8e9
JK
3452010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
346
347 Support PIEs with no symfile_objfile.
348 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
349 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
350
b8040f19
JK
3512010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
352
353 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
354 code part to ...
355 (svr4_static_exec_displacement): ... a new function.
356 (svr4_exec_displacement): New function.
357 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
358 new_offsets using alloca now. Remove variable old_chain and changed.
359 Call objfile_relocate unconditionally now.
360
eb90ce83
DE
3612010-01-14 Doug Evans <dje@google.com>
362
363 * gdbtypes.c (arch_flags_type): Fix comment.
364 * gdbtypes.h (arch_composite_type): Fix comment.
365
bdfed3bc
TG
3662009-01-14 Tristan Gingold <gingold@adacore.com>
367
368 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
369 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
370 to symbol_file_add_from_bfd. Add OSO as separate objfile.
371 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
372 macho_add_oso_symfile.
373 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
374
1596ad23
JB
3752010-01-14 Joel Brobecker <brobecker@adacore.com>
376
377 Tru64: Dead threads are never deleted.
378 * dec-thread.c (dec_thread_ptid_is_alive): New function.
379 (dec_thread_count_gdb_threads): Fix counter increment.
380 (dec_thread_add_gdb_thread): Fix *listp increment.
381 (resync_thread_list): Fix bug in deletion of dead threads that
382 caused all threads to be deleted, instead of just the dead ones.
383
be759fcf
PM
3842010-01-13 Phil Muldoon <pmuldoon@redhat.com>
385
386 PR python/10705
387
388 * python/python-internal.h: Add lazy_string_object_type
389 definition.
390 (create_lazy_string_object, gdbpy_initialize_lazy_string)
391 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
392 * python/py-value.c (valpy_lazy_string): New function.
393 (convert_value_from_python): Add lazy string conversion.
394 * python/py-prettyprint.c (pretty_print_one_value): Check if
395 return is also a lazy string.
396 (print_string_repr): Add lazy string printing branch.
397 (print_children): Likewise.
398 * python/py-lazy-string.c: New file. Implement lazy strings.
399 * python/python.c (_initialize_python): Call
400 gdbpy_initialize_lazy_string.
401 * varobj.c (value_get_print_value): Add lazy string printing
402 branch. Account for encoding.
403 * c-lang.c (c_printstr): Account for new encoding argument. If
404 encoding is NULL, find encoding suited for type, otherwise use
405 user encoding.
406 * language.h (language_defn): Add encoding argument.
407 (LA_PRINT_STRING): Likewise.
408 * language.c (unk_lang_printstr): Update to reflect new encoding
409 argument to language_defn.
410 * ada-lang.h (ada_printstr): Likewise.
411 * c-lang.h (c_printstr): Likewise.
412 * p-lang.h (pascal_printstr);
413 * f-lang.c (f_printstr): Likewise.
414 * m2-lang.c (m2_printstr): Likewise.
415 * objc-lang.c (objc_printstr): Likewise.
416 * p-lang.c (pascal_printstr): Likewise.
417 * scm-lang.c (scm_printstr): Likewise.
418 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
419 encoding argument.
420 * ada-valprint.c (ada_printstr): Likewise.
421 * f-valprint.c (f_val_print): Likewise
422 * m2-valprint.c (m2_val_print): Likewise.
423 * p-valprint.c (pascal_val_print): Likewise.
424 * expprint.c (print_subexp_standard): Likewise.
425 * valprint.c (val_print_string): Likewise.
426 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
427 (SUBDIR_PYTHON_SRCS): Likewise.
428 (py-lazy-string.o): New rule.
429
1fe72117 4302010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
431
432 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
433 uninitialized" warning from gcc on local `tree'.
434
dc146f7c
VP
4352010-01-13 Vladimir Prus <vladimir@codesourcery.com>
436
437 Implement core awareness.
438
439 * bcache.c (compare_ints): Remove
440 (print_percentage): Use compare_positive_ints.
441 * defs.h (compare_positive_ints): Declare.
442 * linux-nat.h (struct lin_lwp): New field core.
443 (linux_nat_core_of_thread_1): Declare.
444 * linux-nat.c (add_lwp): Init the 'core' field.
445 (linux_nat_wait_1): Record the core.
446 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
447 (linux_nat_add_target): Register the above.
448 * linux-thread-db.c (update_thread_core): New.
449 (thread_db_find_new_threads): Update core information for
450 every thread.
451 * remote.c (struct private_thread_info): New.
452 (free_private_thread_info, demand_private_info): New.
453 (PACKET_qXfer_threads, use_osdata_threads): New.
454 (struct thread_item, threads_parsing_context
455 (start_thread, end_thread, thread_attributes)
456 (thread_children, threads_children, threads_elements): New.
457 (remote_threads_info): Try qXfer:threads before anything
458 else.
459 (remote_protocol_packets): Register qXfer:threads.
460 (remote_open_1): Init use_osdata_threads.
461 (struct stop_reply): New field 'core'.
462 (remote_parse_stop_reply): Parse core number.
463 (process_stop_reply): Record core number.
464 (remote_xfer_partial): Handle qXfer:threads.
465 (remote_core_of_thread): New.
466 (init_remote_ops): Register remote_core_of_thread.
467 (_initialize_remote): Register qXfer:read.
468 * target.c (target_core_of_thread): New
469 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
470 (struct target_ops): New field to_core_of_threads.
471 (target_core_of_thread): Declare.
472 * gdbthread.h (struct thread_info): New field private_dtor.
473 * thread.c (print_thread_info): Report the core.
474 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
475 * utils.c (compare_positive_ints): New.
476 * features/threads.dtd: New.
477 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
478 * mi/mi-main.c (struct collect_cores_data, collect_cores)
479 (do_nothing, free_vector_of_osdata_items)
480 (splay_tree_int_comparator, free_splay_tree): New.
481 (print_one_inferior_data): Implemented printing of selected
482 inferiors. Collect and print cores.
483 (output_cores): New.
484 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
485 thread groups together with --available.
486
d30c5336
JK
4872010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
488
489 * configure: Regenerate (for _STRUCTURED_PROC).
490
02893727
JB
4912010-01-12 Joel Brobecker <brobecker@adacore.com>
492
493 Delete dead function.
494 * ada-lang.c (extract_string): Delete. No longer used.
495
46ed2d6f
JB
4962010-01-12 Joel Brobecker <brobecker@adacore.com>
497
498 Fix -Wunused warning in dec-thread.c.
499 * dec-thread.c (dec_thread_count_gdb_threads)
500 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
501
606b8d1a
JB
5022010-01-12 Joel Brobecker <brobecker@adacore.com>
503
504 * ada-valprint.c (ada_print_floating): Remove trailing space.
505
b4ba55a1
JB
5062010-01-12 Joel Brobecker <brobecker@adacore.com>
507
508 Add support for DW_AT_GNAT_descriptive_type.
509 * gdbtypes.h (enum type_specific_kind): New enum.
510 (struct main_type) [type_specific_field]: New component.
511 [type_specific]: Add new component "gnat_stuff".
512 (struct gnat_aux_type): New type.
513 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
514 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
515 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
516 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
517 (TYPE_SPECIFIC_FIELD): New macros.
518 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
519 type does not hold any cplus-specific data.
520 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
521 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
522 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
523 cplus-specific data.
524 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
525 Set new component TYPE_SPECIFIC_FIELD (type).
526 (gnat_aux_default): New constant.
527 (allocate_gnat_aux_type): New function.
528 (init_type): Add initialization the type-specific stuff for
529 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
530 (print_gnat_stuff): New function.
531 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
532 specific data. Adjust code that prints the contents of the
533 type-specific union using the TYPE_SPECIFIC_FIELD value.
534 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
535 the type cplus stuff for Ada types.
536 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
537 Error out if these routines are called with an Ada type.
538 (read_structure_type, read_array_type, read_subrange_type):
539 Add call to set_descriptive_type.
540 (set_die_type): Initialize the gnat-specific data if necessary.
541 (need_gnat_info, die_descriptive_type, set_descriptive_type):
542 New functions.
543 * ada-lang.c (decode_constrained_packed_array_type): Use
544 decode_constrained_packed_array_type instead of doing a standard
545 lookup to locate a parallel type.
546 (find_parallel_type_by_descriptive_type): New function.
547 (ada_find_parallel_type_with_name): New function.
548 (ada_find_parallel_type): Reimplement using
549 ada_find_parallel_type_with_name.
550 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
551 to check if type has a cplus stuff.
552 * linespec.c (total_number_of_methods): Likewise.
553 * mdebugread.c (new_type): Likewise.
554
b0f02ee9
JK
5552010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * NEWS: Document the 0b binary number prefix parsing.
558
b260e109
JK
5592010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 * objfiles.c (objfile_relocate1): Change the return type to int.
562 Describe the new return value. Return non-zero if data changed.
563 (objfile_relocate): New variable changed. Set it. Call
564 breakpoint_re_set depending on CHANGED.
565
b5cfddf5
JK
5662010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
567
568 Implement binary numbers parsing.
569 * c-exp.y (parse_number): New case 'b' and 'B'.
570
e0ae4240
JK
5712010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
572 Tristan Gingold <gingold@adacore.com>
573
574 * solib.c (info_sharedlibrary_command): Replace
575 objfile_has_partial_symbols and objfile_has_full_symbols calls by
576 objfile_has_symbols.
577
6e0e5977
JB
5782010-01-10 Joel Brobecker <brobecker@adacore.com>
579
580 * NEWS: Document the improvements made to the mips-irix port.
581
7348c5e1
JB
5822010-01-09 Joel Brobecker <brobecker@adacore.com>
583
584 Fix the documentation of valprint.c:value_print.
585 * valprint.c (value_print): Update the function description to
586 mention that the syntax of the output follows the current_language,
587 not necessarily C.
588
567995e1
JK
5892010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
590
591 Fix displacement of separate debug info files.
592 * objfiles.c (objfile_relocate): Rename to ...
593 (objfile_relocate1): ... here and make it static. Extend the comment.
594 (objfile_relocate): New function.
595 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
596 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
597 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
598 allocated using alloca.
599 * symfile.c (copy_section_addr_info): Remove.
600 (build_section_addr_info_from_objfile): Make it global. New variables
601 addr_bit and mask, use them.
602 * symfile.h (build_section_addr_info_from_objfile): New prototype.
603 (copy_section_addr_info): Remove.
604
6d8eadbd
JB
6052010-01-09 Joel Brobecker <brobecker@adacore.com>
606
607 Signal unwinder for mips-irix N32.
608 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
609 tramp-frame.h.
610 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
611 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
612 (SIGCONTEXT_LO_OFF): New macros.
613 (mips_irix_n32_tramp_frame_init): New function.
614 (mips_irix_n32_tramp_frame): New static constant.
615 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
616
27087a3d
JB
6172010-01-09 Joel Brobecker <brobecker@adacore.com>
618
619 Breakpoint in shared library does not work on mips-irix.
620 * procfs.c: #include "observer.h".
621 (procfs_inferior_created): New function, moving here the code
622 which unsets the syssgi syscall-exit notifications.
623 (procfs_create_inferior): Remove the code which unsets the syssgi
624 syscall-exit notifications. It is too early to do this here.
625 (_initialize_procfs): Attach the procfs_inferior_created observer.
626
f08877ba
JB
6272010-01-09 Joel Brobecker <brobecker@adacore.com>
628
629 Wrong return convention for arrays (mips-irix).
630 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
631 128 bits or smaller are returned the same way as structs
632 and unions of the the same size.
633
e4b97d48
JB
6342010-01-09 Joel Brobecker <brobecker@adacore.com>
635
636 Cannot set the PC on mips-irix.
637 * irix5-nat.c (fill_gregset): Check regno against the raw PC
638 register number, no the cooked one.
639
11377e68
JB
6402010-01-09 Joel Brobecker <brobecker@adacore.com>
641
642 Error while loading core file on mips-irix.
643 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
644 if debugging from a core file.
645
b2391021
JB
6462010-01-09 Joel Brobecker <brobecker@adacore.com>
647
648 GDB hangs when attaching to process on mips-irix.
649 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
650 attaching to a process.
651
f2ec0ecf
JB
6522010-01-09 Joel Brobecker <brobecker@adacore.com>
653
654 Use the correct breakpoint instruction on mips-irix.
655 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
656 containing the correct breakpoint instruction to use on mips-irix.
657 Use it when the osabi is GDB_OSABI_IRIX.
658
3c95f01c
JB
6592010-01-09 Joel Brobecker <brobecker@adacore.com>
660
661 -Wunused warning in procfs.c (mips-irix only).
662 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
663 throughout instead of using praddset and prdelset respectively.
664
4b7703ad
JB
6652010-01-09 Joel Brobecker <brobecker@adacore.com>
666
667 GDB crash while stepping into function.
668 * infrun.c (handle_inferior_event): Refetch the current frame
669 after handling what.main_action, in case that pointer became
670 dangling.
671
12c89474
JB
6722010-01-09 Joel Brobecker <brobecker@adacore.com>
673
674 Fix build failure of solaris-hosted cross debuggers.
675 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
676
1a3fd262 6772010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
678
679 Fix build failure on sparc-solaris.
680 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
681
75242ef4
JK
6822010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
683
684 Move some symfile code into subroutines.
685 * symfile.h (relative_addr_info_to_section_offsets)
686 (addr_info_make_relative): New prototypes.
687 * symfile.c (default_symfile_offsets): Move a part to ...
688 (relative_addr_info_to_section_offsets): ... this new function.
689 (default_symfile_offsets): Call it.
690 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
691 this part to ...
692 (addr_info_make_relative): ... this new function.
693
268a4a75
JK
6942010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
695
696 Add from_tty to solib_create_inferior_hook.
697 * infcmd.c (post_create_inferior): Move solib_add after
698 solib_create_inferior_hook. Pass from_tty to
699 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
700 0 from_tty and comment why.
701 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
702 * linux-nat.c (linux_child_follow_fork): Likewise.
703 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
704 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
705 from_tty.
706 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
707 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
708 * solib-null.c (null_solib_create_inferior_hook): Likewise.
709 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
710 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
711 * solib-som.c (som_solib_create_inferior_hook): Likewise.
712 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
713 Pass it to svr4_so_ops.solib_create_inferior_hook.
714 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
715 from_tty.
716 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
717 solib_add.
718 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
719 enable_break.
720 * solib-target.c (solib_target_solib_create_inferior_hook): New
721 parameter from_tty.
722 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
723 it to ops->solib_create_inferior_hook.
724 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
725 Move solib_add after solib_create_inferior_hook, call it now with
726 from_tty as 0. New comment there.
727 * solib.h (solib_create_inferior_hook): New parameter from_tty.
728 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
729 Likewise.
730
cf00dfa7
VP
7312010-01-08 Vladimir Prus <vladimir@codesourcery.com>
732
733 Fix multiexec race.
734 * infrun.c (handle_inferior_event): Use get_thread_regcache
735 with events ptid, not get_current_regcache.
736
f91e5ac3
JB
7372009-01-08 Joel Brobecker <brobecker@adacore.com>
738
739 GDB crash with empty executable name (MinGW).
740 * source.c (openp): Add assert that parameter string is not NULL.
741 if parameter string is an empty string, then return with a failure
742 immediately.
743
92b9ce5b
JB
7442009-01-08 Joel Brobecker <brobecker@adacore.com>
745
746 Get rid of support for VAX Floats.
747 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
748 (ada_vax_float_print_function): Delete.
749 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
750 (ada_vax_float_print_function): Delete.
751 * ada-typeprint.c (print_vax_floating_point_type): Delete.
752 (ada_print_type): Remove support for VAX floats.
753 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
754
268a4a75 7552010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
756
757 * stabsread.c (read_args): Handle zero arguments.
758
f0f20949
JB
7592009-01-08 Joel Brobecker <brobecker@adacore.com>
760
761 Cannot find in-tree libiconv.a after reconfigure.
762 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
763 that we can use, then cache the path to this archive.
764 * configure: Regenerate.
765
6b6218c5
SS
7662010-01-07 Stan Shebs <stan@codesourcery.com>
767
35b1e5cc
SS
768 Make tracepoint operations go through target vector.
769 * target.h (enum trace_find_type): New enum.
770 (struct target_ops): New fields to_trace_init,
771 to_download_tracepoint, to_download_trace_state_variable,
772 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
773 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
774 to_set_disconnected_tracing.
775 (target_trace_init): New macro.
776 (target_download_tracepoint): New macro.
777 (target_download_trace_state_variable): New macro.
778 (target_trace_start): New macro.
779 (target_trace_set_readonly_regions): New macro.
780 (target_get_trace_status): New macro.
781 (target_trace_stop): New macro.
782 (target_trace_find): New macro.
783 (target_get_trace_state_variable_value): New macro.
784 (target_set_disconnected_tracing): New macro.
785 * target.c (update_current_target): Inherit and set defaults for
786 tracepoint operations.
787 * tracepoint.c (default_collect): Make globally visible.
788 (target_is_remote): Remove, along with all calls.
789 (tvariables_info): Call target_get_trace_state_variable_value.
790 (remote_set_transparent_ranges): Remove.
791 (trace_start_command): Call target_trace_init,
792 target_download_tracepoint, etc.
793 (download_tracepoint): Remove.
794 (trace_stop_command): Simplify.
795 (stop_tracing): Call target_trace_stop.
796 (get_trace_status): Call target_get_trace_status.
797 (trace_status_command): Add case for targets that cannot trace.
798 (finish_tfind_command): Change to take numerical arguments, call
799 target_trace_find.
800 (trace_find_command): Update call to finish_tfind_command.
801 (trace_find_pc_command): Ditto.
802 (trace_find_tracepoint_command): Ditto.
803 (trace_find_line_command): Ditto.
804 (trace_find_range_command): Ditto.
805 (trace_find_outside_command): Ditto.
806 (set_disconnected_tracing_value): Call
807 target_set_disconnected_tracing.
808 * remote.c: Add protocol encoding bits from tracepoint.c.
809 (trace_error): Move from tracepoint.c.
810 (remote_get_noisy_reply): Ditto.
811 (free_actions_list_cleanup_wrapper): Ditto.
812 (free_actions_list): Ditto.
813 (remote_trace_init): New function.
814 (remote_download_tracepoint): New function.
815 (remote_download_trace_state_variable): New function.
816 (remote_trace_set_readonly_regions): New function.
817 (remote_trace_start): New function.
818 (remote_get_trace_status): New function.
819 (remote_trace_stop): New function.
820 (remote_trace_find): New function.
821 (remote_download_trace_state_variable): New function.
822 (remote_set_disconnected_tracing): New function.
823 (init_remote_ops): Add tracepoint operations.
824
6b6218c5
SS
825 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
826
089b4803
TG
8272010-01-07 Tristan Gingold <gingold@adacore.com>
828
829 * symfile.c (build_section_addr_info_from_objfile): New function.
830 (symbol_file_add_separate): Don't use offsets from objfile but
831 built an addr info.
832
d5551862
SS
8332010-01-06 Stan Shebs <stan@codesourcery.com>
834
835 Support disconnected tracing.
836 * infcmd.c (detach_command): Ask whether to stop tracing.
837 * cli/cli-cmds.c (quit_command): Ditto.
838 * breakpoint.h (struct breakpoint): New field number_on_target.
839 * breakpoint.c (create_tracepoint_from_upload): New function.
840 (get_tracepoint_by_number_on_target): New function.
841 * remote.c (struct remote): New field disconnected_tracing.
842 (remote_disconnected_tracing_feature): New function.
843 (remote_protocol_features): Add DisconnectedTracing.
844 (struct uploaded_tp): New struct.
845 (uploaded_tps): New global.
846 (get_uploaded_tp): New function.
847 (find_matching_tracepoint): New function.
848 (remote_get_tracing_state): New function.
849 (remote_start_remote): Call it.
850 * tracepoint.c (disconnected_tracing): New global.
851 (trace_start_command): Initialize number_on_target.
852 (stop_tracing): New function, split out from...
853 (trace_stop_command): Call stop_tracing.
854 (get_trace_status): New function, split out from...
855 (trace_status_command): Call get_trace_status, add info on
856 disconnection behavior.
857 (disconnect_or_stop_tracing): New function.
858 (finish_tfind_command): Translate from number on target.
859 (trace_find_tracepoint_command): Translate to number on target.
860 (send_disconnected_tracing_value): New function.
861 (set_disconnected_tracing): New function.
862 (_initialize_tracepoint): Add disconnected-tracing variable.
863 * NEWS: Mention disconnected tracing.
864
15d123c9
TG
8652010-01-06 Tristan Gingold <gingold@adacore.com>
866
867 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
868 parameter to main_objfile. Iterate on all separate debug objfiles.
869 * symfile.h (symbol_file_add_separate)
870 (find_separate_debug_file_by_debuglink): Remove parameter names.
871 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
872 (reread_symbols): Use free_objfile_separate_debug.
873 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
874 Adjust comment.
875 (objfile_separate_debug_iterate, add_separate_debug_objfile)
876 (free_objfile_separate_debug): New prototypes.
877 * objfiles.c (objfile_separate_debug_iterate): New function.
878 (add_separate_debug_objfile, free_objfile_separate_debug): New
879 functions.
880 (free_objfile): Use free_objfile_separate_debug. Adjust for
881 multiple separate debug objfile.
882 (objfile_has_symbols): Adjust comment. Iterate on all separate
883 debug objfiles.
884 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
885 debug objfile.
886 (lookup_minimal_symbol_text): Ditto.
887 (lookup_minimal_symbol_by_pc_name): Ditto.
888 (lookup_minimal_symbol_solib_trampoline): Ditto.
889 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
890 debug objfiles.
891
7a697b8d
SS
8922010-01-05 Stan Shebs <stan@codesourcery.com>
893
894 Add fast tracepoints.
895 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
896 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
897 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
898 * breakpoint.c (tracepoint_type): New function.
899 (ALL_TRACEPOINTS): Use it.
900 (should_be_inserted): Ditto.
901 (bpstat_check_location): Ditto.
902 (print_one_breakpoint_location): Ditto.
903 (user_settable_breakpoint): Ditto.
904 (set_breakpoint_location_function): Ditto.
905 (disable_breakpoints_in_shlibs): Ditto.
906 (delete_trace_command): Ditto.
907 (print_it_typical): Add bp_fast_tracepoint case.
908 (bpstat_what): Ditto.
909 (print_one_breakpoint_location): Ditto.
910 (allocate_bp_location): Ditto.
911 (mention): Ditto.
912 (breakpoint_re_set_one): Ditto.
913 (disable_command): Ditto.
914 (enable_command): Ditto.
915 (check_fast_tracepoint_sals): New function.
916 (break_command_really): Call it.
917 (ftrace_command): New function.
918 (_initialize_breakpoint): Add ftrace command.
919 * gdbarch.sh (fast_tracepoint_valid_at): New.
920 * gdbarch.h, gdbarch.c: Regenerate.
921 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
922 (i386_gdbarch_init): Use it.
923 * remote.c (struct remote_state): New field fast_tracepoints.
924 (PACKET_FastTracepoints): New packet config type.
925 (remote_fast_tracepoint_feature): New function.
926 (remote_protocol_features): Add FastTracepoints.
927 (remote_supports_fast_tracepoints): New function.
928 (_initialize_remote): Add FastTracepoints.
929 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
930 * NEWS: Mention fast tracepoints.
931
737a160e
JB
9322010-01-06 Joel Brobecker <brobecker@adacore.com>
933
934 * gdb-gdb.py: New file.
935
ce6cca6d
MS
9362010-01-05 Michael Snyder <msnyder@vmware.com>
937
938 * infrun.c (handle_inferior_event): Fix typo in comment.
939
0d15807d
JK
9402010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
941
942 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
943
7803799a
UW
9442010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
945
946 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
947 and s390x-linux64.
948 (s390-linux32-expedite): Define.
949 (s390-linux64-expedite): Define.
950 (s390x-linux64-expedite): Define.
951 * features/s390-acr.xml: New file.
952 * features/s390-fpr.xml: New file.
953 * features/s390-core32.xml: New file.
954 * features/s390-core64.xml: New file.
955 * features/s390x-core64.xml: New file.
956 * features/s390-linux32.xml: New file.
957 * features/s390-linux64.xml: New file.
958 * features/s390x-linux64.xml: New file.
959 * features/s390-linux32.c: New generated file.
960 * features/s390-linux64.c: New generated file.
961 * features/s390x-linux64.c: New generated file.
962
963 * regformats/s390-linux32.dat: New generated file.
964 * regformats/s390-linux64.dat: New generated file.
965 * regformats/s390x-linux64.dat: New generated file.
966 * regformats/reg-s390.dat: Remove.
967 * regformats/reg-s390x.dat: Remove.
968
969 * s390-nat.c: Include "auxv.h" and <elf.h>.
970 (HWCAP_S390_HIGH_GPRS): Define if undefined.
971 (s390_target_wordsize): New function.
972 (s390_auxv_parse): Likewise.
973 (s390_get_hwcap): Likewise.
974 (s390_read_description): Likewise.
975 (_initialize_s390_nat): Install s390_auxv_parse and
976 s390_read_description.
977
978 * s390-tdep.c: Include "features/s390-linux32.c",
979 "features/s390-linux64.c", and "features/s390x-linux64.c".
980 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
981 (s390_register_call_saved): New function.
982 (s390_register_name): Remove.
983 (s390_register_type): Remove.
984 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
985 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
986 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
987 (s390_pseudo_register_name): New function.
988 (s390_pseudo_register_type): New function.
989 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
990 Handle full GPR pesudos and varying pseudo register numbers.
991 (s390_pseudo_register_write): Likewise
992 (s390x_pseudo_register_read): Remove.
993 (s390x_pseudo_register_write): Likewise.
994 (s390_register_group): Remove.
995 (s390_pseudo_register_group): New function.
996 (s390_regmap_gregset): Add GPR upper halves.
997 (s390x_regmap_gregset): Likewise.
998 (s390_regmap_fpregset): Likewise.
999 (s390_regmap_upper): New global variable.
1000 (s390_upper_regset): New global variable.
1001 (s390_upper_regset_sections): New global variable.
1002 (s390_regset_from_core_section): Handle GPR upper halves.
1003 (s390_core_read_description): New function.
1004 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1005 register information. Handle varying pseudo register numbers.
1006 (s390_backchain_frame_unwind_cache): Likewise.
1007 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1008 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1009 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1010 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1011 Handle varying pseudo register numbers.
1012 (s390_unwind_pc): Handle varying pseudo register numbers.
1013 (s390_dwarf2_prev_register): New function.
1014 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1015 register information. Handle varying pseudo register numbers.
1016 Install s390_dwarf2_prev_register to unwind full GPRs.
1017 (s390_gdbarch_init): Handle target descriptions. Assign varying
1018 pseudo register numbers. Install s390_adjust_frame_regnum.
1019 (_initialize_s390_tdep): Initialize target descriptions.
1020
1021 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1022 (S390_NUM_REGS): Redefine to include upper half registers.
1023 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1024 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1025 (tdesc_s390_linux32): Add declaration.
1026 (tdesc_s390_linux64): Likewise.
1027 (tdesc_s390x_linux64): Likewise.
1028
1b1818e4
UW
10292010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1030
1031 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1032 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1033 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1034 (ppc_linux_vmx_regset_sections): Likewise.
1035 (ppc_linux_fp_regset_sections): Likewise.
1036
1037 * corelow.c (get_core_register_section): Constify arguments.
1038 (get_core_registers): Use gdbarch_core_regset_sections instead
1039 of hard-coded platform-specific register section names.
1040
dcbf108f
UW
10412010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1042
1043 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 1044 a register, assume the least-significant part is used.
dcbf108f
UW
1045 (write_pieced_value): Likewise.
1046
704e9165
UW
10472010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1048
1049 * printcmd.c: Include "arch-utils.h".
1050 (do_one_display): Re-parse expression if current architecture changed.
1051
c54eabfa
JK
10522010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1053 Joel Brobecker <brobecker@adacore.com>
1054
1055 * gdbtypes.c (check_typedef): New comment on type length.
1056 * value.c (allocate_value_lazy): Remove the unused atype variable. New
1057 comment on type length.
1058 (value_primitive_field): Keep the original TYPE value, new comment.
1059
50cb2941
JK
10602010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1061
1062 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1063 p_start. Change != comparisons to > and < comparisons.
1064
be66db07
JK
10652010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1066
1067 * cli/cli-script.c (process_next_line): Check P2 overrun.
1068
abd775ce
JB
10692009-01-01 Joel Brobecker <brobecker@adacore.com>
1070
1071 Update the copyright hearder to add year 2010 for most GDB files.
1072
6479260d
JB
10732009-01-01 Joel Brobecker <brobecker@adacore.com>
1074
1075 Fix build failure in inf-ptrace.c.
1076 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1077
4a70f654
JB
10782010-01-01 Joel Brobecker <brobecker@adacore.com>
1079
1080 * top.c (print_gdb_version): Update copyright year.
1081
b9ee2233
JB
10822010-01-01 Joel Brobecker <brobecker@adacore.com>
1083
1084 Fix break *FUN'address thread NUM.
1085 * ada-lex.l (task): Expand rule to also match the thread keyword.
1086
70575d34
JB
10872010-01-01 Joel Brobecker <brobecker@adacore.com>
1088
1089 Fix break *FUN'address task NUM.
1090 * ada-lex.l (task): New rule.
1091 * ada-lang.c (valid_task_id): Make sure the Ada task list has
1092 been built before using it.
1093
e1e4d4a4 1094For older changes see ChangeLog-2009.
c906108c
SS
1095\f
1096Local Variables:
1097mode: change-log
1098left-margin: 8
1099fill-column: 74
1100version-control: never
57da7796 1101coding: utf-8
c906108c 1102End:
This page took 1.176375 seconds and 4 git commands to generate.