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