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