* NEWS: Correct typo.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
2
3 * NEWS: Correct typo.
4
5 2010-02-17 Tom Tromey <tromey@redhat.com>
6
7 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8
9 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10
11 * symfile.c (build_section_addr_info_from_objfile): Include sections
12 only if they are SEC_ALLOC or SEC_LOAD.
13
14 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
15
16 PR shlibs/11293
17 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
18 of ULONGEST for address size.
19
20 2010-02-17 Tom Tromey <tromey@redhat.com>
21
22 * NEWS: Add C++ improvements section.
23
24 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
25
26 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
27 PyThreadState_Swap): Avoid "statement with no effect" warning.
28
29 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
30
31 * solib-svr4.c (enable_break <target_auxv_search>): New variable
32 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
33
34 2010-02-17 Tristan Gingold <gingold@adacore.com>
35 Petr HluzĂ­n <petr.hluzin@gmail.com>
36
37 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
38 gdb_assert. Fix info->size for SIG prologue.
39
40 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
41
42 * infcmd.c (show_inferior_tty_command): Check for NULL.
43 Correct output message.
44
45 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
46
47 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
48 FUNCTION contains parentheses. Improve removal of a trailing
49 single quote.
50
51 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
52
53 * gcore.c (do_bfd_delete_cleanup): New function.
54 (gcore_command): Use it. Discard the cleanup after success.
55 (gcore_copy_callback): Delete dead code.
56
57 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
58
59 * symfile.c (addr_info_make_relative): Always use
60 find_lowest_section.
61
62 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
63
64 * NEWS: Added entry for namespace fixes.
65
66 2010-02-15 Tom Tromey <tromey@redhat.com>
67
68 * dwarf2read.c (guess_structure_name): Allocate name on the
69 objfile obstack.
70
71 2010-02-15 Tom Tromey <tromey@redhat.com>
72
73 * c-typeprint.c (c_type_print_base): Reverse order of test.
74
75 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
76
77 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
78 initialize it from ELF BFD. Extend the prelink condition by it.
79
80 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
81
82 * defs.h (parse_pid_to_attach): New.
83 * utils.c (parse_pid_to_attach): New.
84 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
85 * gnu-nat.c (gnu_attach): Likewise.
86 * nto-procfs.c (procfs_attach): Likewise.
87 * procfs.c (procfs_attach): Likewise.
88 * windows-nat.c (windows_attach): Likewise.
89 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
90 * inf-ttrace.c (inf_ttrace_attach): Likewise.
91 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
92 check.
93
94 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
95
96 * MAINTAINERS: Add myself for write after approval privileges.
97
98 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
99
100 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
101 block.
102
103 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
104
105 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
106 only if INFO_VERBOSE.
107
108 2010-02-12 Tomas Holmberg <th@virtutech.com>
109
110 * mi/mi-main.c: Added the --reverse flag to the following MI
111 commands: exec-continue, exec-finish, exec-next, exec-step,
112 exec-next-instruction, exec-step-instruction. This is to
113 support reverse execution over the MI interface to gdb.
114
115 2010-02-12 Pedro Alves <pedro@codesourcery.com>
116
117 * tracepoint.c (_initialize_tracepoint): Specify that the address
118 range of `tfind outsize' is exclusive, and that the address range
119 of `tfind range' is inclusive, in the commands' help strings.
120
121 2010-02-12 Joel Brobecker <brobecker@adacore.com>
122
123 Spurious "dll not found" error messages on x64-windows.
124 * windows-nat.c: Add include of complaints.h.
125 (handle_unload_dll): Change dll-not-found error into a complaint.
126
127 2010-02-12 Pedro Alves <pedro@codesourcery.com>
128
129 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
130 bp_tracepoint and bp_fast_tracepoint, not
131 bp_loc_software_breakpoint.
132 (update_global_location_list): Tracepoints are never duplicates of
133 anything.
134
135 2010-02-12 Pedro Alves <pedro@codesourcery.com>
136
137 * breakpoint.c (break_command_really): Change return type to int.
138 Return false if no breakpoint was created, true otherwise.
139 (trace_command): Don't set the tracepoint count if no tracepoint
140 was created.
141 (ftrace_command): Ditto.
142 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
143 created in the breakpoints table.
144
145 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
146 Ulrich Weigand <uweigand@de.ibm.com>
147
148 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
149
150 2010-02-11 Pedro Alves <pedro@codesourcery.com>
151
152 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
153 the offset value isn't of integral type.
154
155 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
156
157 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
158 New.
159
160 2010-02-11 Pedro Alves <pedro@codesourcery.com>
161
162 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
163 non-subscriptable types.
164 * valarith.c (binop_types_user_defined_p): New, abstracted out
165 from ...
166 (binop_user_defined_p): ... this.
167 * value.h (binop_types_user_defined_p): Declare.
168
169 2010-02-11 Pedro Alves <pedro@codesourcery.com>
170
171 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
172 Merge uploaded TSVs before merging uploaded tracepoints.
173
174 2010-02-11 Pedro Alves <pedro@codesourcery.com>
175
176 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
177
178 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
179
180 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
181 whitespace character after a dot in comment.
182 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
183 Likewise.
184 (list_args_or_locals): For the 'all' (that is
185 -stack-list-variables) case, always output list of tuples.
186 Output 'arg' field if variable is argument.
187
188 2010-02-10 Tom Tromey <tromey@redhat.com>
189
190 * parser-defs.h (parser_debug): Declare.
191 * parse.c (_initialize_parse): Install "debug parser" set/show
192 command.
193 (parser_debug): New global.
194 (show_parserdebug): New function.
195 * c-exp.y (c_parse): Set yydebug.
196
197 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
198
199 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
200 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
201 (tdesc_predefined_types): Add i387_ext, i386_eflags and
202 i386_mxcsr.
203 (tdesc_find_type): New.
204 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
205 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
206
207 * target-descriptions.h (tdesc_find_type): New.
208
209 2010-02-10 Michael Snyder <msnyder@vmware.com>
210
211 * gdb-gdb.py: Comment fix.
212
213 2010-02-09 Tristan Gingold <gingold@adacore.com>
214
215 * machoread.c (macho_symfile_relocate): New function.
216 (macho_sym_fns): Use macho_symfile_relocate instead of
217 default_symfile_relocate.
218 (macho_oso_data): New type.
219 (current_oso): New variable.
220 (macho_add_oso_symfile): Do not compute section_addr_info, but
221 instead set vma of sections.
222 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
223 Set and clear current_oso.
224
225 2010-02-09 Joel Brobecker <brobecker@adacore.com>
226
227 Wrong type description for tagged type parameter.
228 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
229 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
230 reference to a tagged type.
231
232 2010-02-09 Tristan Gingold <gingold@adacore.com>
233
234 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
235 brothers of the parent.
236
237 2010-02-08 Tom Tromey <tromey@redhat.com>
238
239 PR c++/8017:
240 * value.h: Update.
241 * valops.c (search_struct_field): Make 'name' const.
242 (search_struct_method): Likewise.
243 (find_method_list): Make 'method' const.
244 (value_struct_elt): Make 'name' and 'err' const.
245 (value_find_oload_method_list): Make 'method' const.
246 (find_overload_match): Make 'name' const.
247 * eval.c (evaluate_subexp_standard): New locals function,
248 function_name.
249 <OP_FUNCALL>: Handle OP_SCOPE specially.
250
251 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
252
253 * infrun.c (handle_inferior_event): Do not look up regcache
254 for exited processes.
255
256 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
257
258 PR gdb/10728
259 * valarith.c (value_ptrdiff): Added a test for a zero type length,
260 warn if found, and assume length = 1.
261
262 2010-02-08 Chris Moller <cmoller@redhat.com>
263
264 PR gdb/9067
265 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
266 cp_print_static_field) Fix use of obstacks.
267
268 2010-02-08 Pedro Alves <pedro@codesourcery.com>
269
270 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
271 resumed LWPs as resumed.
272 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
273 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
274 of throwing an internal error. If an LWP of a process we're not
275 waiting for reports a signal, don't force collecting a SIGSTOP,
276 and if it was breakpoint hit in non-stop mode, cancel it. Don't
277 go through all LWPs cancelling breakpoints in non-stop mode.
278 (resume_stopped_resumed_lwps): New.
279 (linux_nat_wait): Use it.
280
281 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
282
283 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
284 i386/amd64 and i386/amd64-linux.
285 (i386/i386-expedite): New.
286 (i386/i386-linux-expedite): Likewise.
287 (i386/amd64-expedite):Likewise.
288 (i386/amd64-linux-expedite): Likewise.
289 ($(outdir)/i386/i386-linux.dat): Likewise.
290 ($(outdir)/i386/amd64.dat): Likewise.
291 ($(outdir)/i386/amd64-linux.dat): Likewise.
292
293 * features/i386/32bit-core.xml: New.
294 * features/i386/32bit-linux.xml: Likewise.
295 * features/i386/32bit-sse.xml: Likewise.
296 * features/i386/64bit-core.xml: Likewise.
297 * features/i386/64bit-linux.xml: Likewise.
298 * features/i386/64bit-sse.xml: Likewise.
299 * features/i386/i386-linux.xml: Likewise.
300 * features/i386/i386.xml: Likewise.
301 * features/i386/amd64-linux.xml: Likewise.
302 * features/i386/amd64.xml: Likewise.
303 * features/i386/i386-linux.c: Likewise.
304 * features/i386/i386.c: Likewise.
305 * features/i386/amd64-linux.c: Likewise.
306 * features/i386/amd64.c: Likewise.
307
308 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
309
310 PR c++/7935:
311 * cp-support.h: Added char* alias element to using_direct data
312 struct.
313 (cp_add_using): Added char* alias argument.
314 (cp_add_using_directive): Ditto.
315 * cp-namespace.c: Updated with the above changes.
316 (cp_lookup_symbol_imports): Check for aliases.
317 * dwarf2read.c (read_import_statement): Figure out local alias
318 for the import and pass it on to cp_add_using.
319 (read_namespace): Pass alias argument to cp_add_using.
320
321 2010-02-05 Hui Zhu <teawater@gmail.com>
322
323 * defs.h (gdb_bfd_errmsg): New extern.
324 * exec.c (exec_file_attach): Change bfd_errmsg to
325 gdb_bfd_errmsg.
326 * utils.c (AMBIGUOUS_MESS1): New macro.
327 (AMBIGUOUS_MESS2): New macro.
328 (gdb_bfd_errmsg): New function.
329
330 2010-02-04 Doug Evans <dje@google.com>
331
332 * solib-svr4.c (enable_break): Add comment.
333
334 2010-02-04 Anthony Green <green@moxielogic.com>
335
336 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
337 gracefully.
338
339 2010-02-04 Tom Tromey <tromey@redhat.com>
340
341 * valops.c (search_struct_field): Account for
342 value_embedded_offset. Fix check for virtual base past the end of
343 the object. Use value_copy when making a slice of the value.
344
345 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
346
347 PR tui/9622
348 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
349 only if gdb_stdout is a tty.
350
351 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
352
353 * target-descriptions.c: Include "osabi.h".
354 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
355 OSABI.
356
357 2010-02-04 Tristan Gingold <gingold@adacore.com>
358
359 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
360 (macho_symtab_read): Adjust calls to macho_add_oso.
361 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
362 (macho_symfile_read): Adjust call to macho_oso_symfile.
363 (macho_new_init): Move this function after declarations.
364 (macho_symfile_init): Ditto.
365 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
366 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
367
368 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
369
370 Include MI command in remotelog.
371
372 * mi/mi-main.c (mi_execute_command): Call target_log_command.
373
374 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
375
376 * remote.c (remote_state): Remove gdbarch.
377 (init_remote_state): Don't set gdbarch.
378 (remote_query_supported): Pass target_gdbarch instead of
379 rs->gdbarch to gdbarch_qsupported.
380
381 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
382
383 * gdbarch.sh: Add qsupported.
384
385 * gdbarch.c: Regenerated.
386 * gdbarch.h: Likewise.
387
388 * remote.c (remote_state): Add gdbarch.
389 (init_remote_state): Set gdbarch.
390 (remote_query_supported): Support gdbarch_qsupported.
391
392 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
393
394 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
395 __FreeBSD_kernel_version.
396
397 2010-02-03 Tristan Gingold <gingold@adacore.com>
398
399 * symfile.h (struct sym_fns): Add sym_relocate field.
400 (default_symfile_relocate): New prototype.
401 (symfile_relocate_debug_section): First argument is now an objfile.
402 * symfile.c (default_symfile_relocate): Rename from
403 symfile_relocate_debug_section, first argument is now an objfile.
404 (symfile_relocate_debug_section): New function.
405 * coffread.c (coff_sym_fns): Set sym_relocate field.
406 * somread.c (som_sym_fns): Ditto.
407 * mipsread.c (ecoff_sym_fns): Ditto.
408 * machoread.c (macho_sym_fns): Ditto.
409 * elfread.c (elf_sym_fns): Ditto.
410 * dwarf2read.c (dwarf2_read_section): Ditto.
411 * xcoffread.c (xcoff_sym_fns): Ditto.
412 * dbxread.c (aout_sym_fns): Ditto.
413 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
414 (elfstab_build_psymtabs): Ditto.
415
416 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
417
418 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
419
420 2010-02-02 Tom Tromey <tromey@redhat.com>
421
422 * valops.c (value_cast_structs): Try downcasting using the RTTI
423 type.
424
425 2010-02-02 Tom Tromey <tromey@redhat.com>
426
427 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
428 (gnuv2_baseclass_offset): Now static.
429 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
430 * gnu-v2-abi.h: Remove.
431
432 2010-02-02 Tom Tromey <tromey@redhat.com>
433
434 * m2-typeprint.c (m2_record_fields): Don't use
435 TYPE_DECLARED_TYPE.
436 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
437 (struct main_type) <flag_declared_class>: New field.
438 (struct cplus_struct_type) <declared_type>: Remove.
439 <ntemplate_args>: Move earlier.
440 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
441 (DECLARED_TYPE_TEMPLATE): Remove.
442 (TYPE_DECLARED_TYPE): Remove.
443 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
444 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
445 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
446 TYPE_DECLARED_TYPE.
447
448 2010-02-02 Tom Tromey <tromey@redhat.com>
449
450 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
451 * valops.c (search_struct_field): Compute nbases after calling
452 CHECK_TYPEDEF.
453 (check_field): Call CHECK_TYPEDEF.
454 * cp-valprint.c (cp_print_value): Pass correct address to
455 baseclass_offset. Fix check for virtual base past the end of the
456 object. Don't offset address passed to cp_print_value_fields or
457 apply_val_pretty_printer.
458 (cp_print_value_fields): Fix call to val_print.
459 (cp_print_value_fields_rtti): New function.
460 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
461 * p-valprint.c (pascal_object_print_value_fields): Fix call to
462 val_print.
463 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
464 offset to address.
465 * language.h (struct language_defn) <la_val_print>: Document.
466 * c-lang.h (cp_print_value_fields_rtti): Declare.
467
468 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
469
470 PR libc/11214:
471 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
472 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
473 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
474
475 2010-02-01 Michael Matz <matz@suse.de>
476 Daniel Jacobowitz <dan@codesourcery.com>
477
478 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
479 functions use a frame pointer.
480
481 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
484 by a conditional setting DYN_ADDR. Use DYN_ADDR.
485 * config/djgpp/fnchange.lst: Add translations for
486 symbol-without-target_section.exp and symbol-without-target_section.c.
487
488 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
489
490 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
491 (remote_breakpoint_for_pc): Correct invalid_p check.
492 * gdbarch.c: Regenerated.
493
494 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
495
496 * arm-tdep.c (arm_find_mapping_symbol): New function, from
497 arm_pc_is_thumb.
498 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
499 (extend_buffer_earlier): New function.
500 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
501 (arm_adjust_breakpoint_address): New function.
502 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
503
504 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
505
506 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
507 (arm_linux_thumb2_le_breakpoint): New constants.
508 (arm_linux_init_abi): Set thumb2_breakpoint and
509 thumb2_breakpoint_size.
510 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
511 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
512 Implement support for single stepping through IT blocks if
513 a 32-bit Thumb breakpoint instruction is available.
514 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
515 is available, use it when needed.
516 (arm_remote_breakpoint_from_pc): New function.
517 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
518 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
519 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
520
521 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
522
523 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
524 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
525 * gdbarch.c, gdbarch.h: Regenerated.
526 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
527 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
528 gdbarch_remote_breakpoint_from_pc.
529
530 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
531
532 * infrun.c (prepare_to_proceed): Handle other signals which might
533 match a breakpoint.
534 (handle_inferior_event): Move the check for unusual breakpoint
535 signals earlier.
536
537 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
538
539 amd64 - function returning record with field straddling 2 registers.
540 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
541 a record of length <= 16 in which a field straddles the two
542 eightbytes.
543
544 2010-01-29 Joel Brobecker <brobecker@adacore.com>
545
546 Implement return values on amd64-windows.
547 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
548 (amd64_windows_return_value): New function.
549 (amd64_windows_init_abi): Call set_gdbarch_return_value with
550 amd64_windows_return_value.
551
552 2010-01-29 Joel Brobecker <brobecker@adacore.com>
553
554 amd64-windows: 32 bytes allocated on stack by caller for integer
555 parameter registers.
556 * i386-tdep.h (struct gdbarch_tdep): Add new field
557 integer_param_regs_saved_in_caller_frame.
558 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
559 tdep->integer_param_regs_saved_in_caller_frame to 1.
560 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
561 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
562
563 2010-01-29 Joel Brobecker <brobecker@adacore.com>
564
565 amd64-windows: memory args passed by pointer during function calls.
566 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
567 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
568 where tdep->memory_args_by_pointer is non-zero.
569 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
570 tdep->memory_args_by_pointer to 1.
571
572 2010-01-29 Joel Brobecker <brobecker@adacore.com>
573
574 amd64-windows: Integer parameters in function calls.
575 * i386-tdep.h (enum amd64_reg_class): New, moved here from
576 amd64-tdep.c.
577 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
578 call_dummy_integer_regs, and classify.
579 * amd64-tdep.h (amd64_classify): Add declaration.
580 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
581 (amd64_reg_class): Delete, moved to i386-tdep.h.
582 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
583 Replace call to amd64_classify by call to tdep->classify.
584 (amd64_push_arguments): Get the list of registers to use for
585 passing integer parameters from the gdbarch tdep structure,
586 rather than using a hardcoded one. Replace calls to amd64_classify
587 by calls to tdep->classify.
588 (amd64_push_dummy_call): Get the register number used for
589 the "hidden" argument from tdep->call_dummy_integer_regs.
590 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
591 and tdep->call_dummy_integer_regs. Set tdep->classify.
592 * amd64-windows-tdep.c: Add include of gdbtypes.h.
593 (amd64_windows_dummy_call_integer_regs): New static global.
594 (amd64_windows_classify): New function.
595 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
596 tdep->call_dummy_integer_regs and tdep->classify.
597
598 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
599
600 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
601 for the new regcache. All callers updated.
602 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
603 (get_thread_arch_regcache): Do not set aspace here.
604 * regcache.h (regcache_xmalloc): Update declaration.
605
606 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
607 regcache_xmalloc updated.
608
609 2010-01-28 Joel Brobecker <brobecker@adacore.com>
610
611 Another -Wunused-function error in procfs.c (sparc-solaris)
612 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
613 Only define if SYS_syssgi is defined.
614 (remove_dbx_link_breakpoint): Delete declaration. Move up.
615 (dbx_link_addr, insert_dbx_link_bpt_in_file)
616 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
617 is itself defined.
618
619 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
620
621 * windows-nat.c (windows_initialization_done): New variable.
622 (get_windows_debug_event): Issue error when process dies before
623 completely initializing.
624 (do_initial_windows_stuff): Set flag to indicate when we are done with
625 the initial steps of attaching to the child.
626
627 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
628
629 * symtab.h (struct symbol <symtab>): New comment on NULL values.
630
631 2010-01-27 Doug Evans <dje@google.com>
632
633 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
634
635 * breakpoint.c (bpstat_stop_status): Delete useless code.
636
637 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
638
639 * printcmd.c (display_uses_solib_p): Remove variable section. Access
640 objfile via SYMBOL_SYMTAB.
641
642 2010-01-26 Tom Tromey <tromey@redhat.com>
643
644 PR exp/7643:
645 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
646 coerce_array on result.
647
648 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
649
650 * cp-namespace.c (cp_lookup_symbol_namespace): Added
651 search_parent argument.
652 (cp_add_using): Initialize 'searched' field.
653 (reset_directive_searched): New function.
654 * cp-support.h: Add 'searched' field to using_direct struct.
655 (cp_lookup_symbol_imports): Ditto.
656 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
657 Perform recursive search.
658 Implement non parent search.
659 * valops.c (value_maybe_namespace_elt): Updated.
660
661 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
662
663 PR gdb/10929:
664 * dwarf2read.c (read_lexical_block_scope): Create blocks for
665 scopes which contain using directives even if they contain no
666 declarations.
667 * symtab.c (lookup_symbol_aux): Pass lowest level block to
668 la_lookup_symbol_nonlocal.
669 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
670 cp_lookup_symbol_namespace.
671 (cp_lookup_symbol_namespace): Perform an import lookup at every
672 block level.
673 (cp_lookup_symbol_imports): New function.
674 (cp_lookup_symbol_in_namespace): New function.
675
676 2010-01-25 Tom Tromey <tromey@redhat.com>
677
678 PR gdb/11049:
679 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
680 result.
681
682 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
683
684 * configure.ac: Only use host_os part when disabling TUI on osf.
685 Use test to check variables, prefix strings with x.
686 * configure: Regenerate.
687
688 * solib-osf.c (osf_current_sos): Initialize tail.
689
690 2010-01-25 gingold <gingold@adacore.com>
691
692 * windows-nat.c (windows_continue): Use %x to print thread id.
693 (get_windows_debug_event): Ditto.
694
695 2010-01-22 Tom Tromey <tromey@redhat.com>
696
697 PR symtab/11199:
698 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
699 type and arguments. Use smash_to_methodptr_type.
700 (read_structure_type): Call quirk_gcc_member_function_pointer
701 later.
702 * gdbtypes.h (smash_to_methodptr_type): Declare.
703 * gdbtypes.c (smash_to_methodptr_type): New function.
704 (lookup_methodptr_type): Use it.
705
706 2010-01-21 Tom Tromey <tromey@redhat.com>
707
708 PR symtab/11198:
709 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
710 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
711 * glibc-tdep.c (find_minsym_and_objfile): Remove.
712 (glibc_skip_solib_resolver): Use
713 lookup_minimal_symbol_and_objfile.
714
715 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
716
717 * inflow.c (check_syscall): Guard by #if clause for GO32 and
718 WIN32 targets.
719
720 2010-01-20 Tom Tromey <tromey@redhat.com>
721
722 PR backtrace/10770:
723 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
724 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
725 * dwarf2expr.c (new_dwarf_expr_context): Allocate
726 dwarf_stack_values, not CORE_ADDRs.
727 (execute_stack_op): Change DW_OP_div and comparison operators to
728 use signed operands.
729
730 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
731
732 Per-inferior args and tty and environment.
733
734 * infcmd.c (inferior_args): Rename to ...
735 (inferior_args_scratch): ... this.
736 (inferior_io_terminal): Rename to ...
737 (inferior_io_terminal_scratch): ... this.
738 (inferior_argc, inferior_argv): Remove.
739 (set_inferior_io_terminal, get_inferior_io_terminal): Store
740 inside current_inferior().
741 (set_inferior_tty_command, show_inferior_tty_command): New.
742 (get_inferior_args, set_inferior_args): Store inside
743 current_inferior().
744 (notice_args_set): Likewise and rename to...
745 (set_args_command): ... this.
746 (set_inferior_args_vector): Likewise.
747 (notice_args_read): Rename to...
748 (show_args_command): ...new.
749 (tty_command): Remove.
750 (run_command_1): Don't free old args, as they are freed by
751 set_inferior_arg now.
752 (run_no_args_command): Likewise.
753 (inferior_environ): Remove.
754 (run_command_1): Use environment of the current inferior.
755 (environment_info, set_environment_command)
756 (unset_environment_command, path_info, path_command): Likewise.
757 (_initialize_infcmd): Adjust for function and variable renames.
758 Do not init inferior_environ.
759 * inferior.h (set_inferior_arg): Adjust prototype.
760 (struct inferior): New fields args, argc, argv, terminal, environment.
761 (inferior_environ): Remove declaration.
762 * inferior.c (free_inferior): Free new fields.
763 (add_inferior_silent): Initialize 'environment' field.
764 * main.c (captured_main): Set arguments only after the initial
765 inferior has been created. Set set_inferior_io_terminal,
766 not tty_command.
767 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
768 inferior.
769 (_initialize_mi_cmd_env): Adjust for disappearance of global
770 inferior_environ.
771 * solib.c (solib_find): Use environment of the current inferior.
772
773 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
774
775 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
776 HAVE_PYTHON.
777 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
778
779 2010-01-20 Joel Brobecker <brobecker@adacore.com>
780
781 Get rid of ada-lang.c:function_name_from_pc.
782 * ada-lang.c: Add "stack.h" #include.
783 (function_name_from_pc): Delete.
784 (is_known_support_routine): Replace call to function_name_from_pc
785 by call to find_frame_funname.
786 (ada_unhandled_exception_name_addr_from_raise): Likewise.
787
788 2010-01-19 Tom Tromey <tromey@redhat.com>
789
790 PR c++/11026:
791 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
792 objfile obstack.
793
794 2010-01-19 Tom Tromey <tromey@redhat.com>
795
796 * top.c (stop_sig, float_handler, do_nothing): Remove.
797
798 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
799
800 * breakpoint.c (watchpoint_check): Check the call
801 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
802 Extend the comment.
803 * config/djgpp/fnchange.lst: Add translations for
804 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
805 watchpoint-cond-gone-stripped.c.
806
807 2010-01-19 Tom Tromey <tromey@redhat.com>
808
809 PR c++/8000:
810 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
811 into parent scope, and enumerator into grandparent scope.
812
813 2010-01-19 Joel Brobecker <brobecker@adacore.com>
814
815 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
816
817 2010-01-19 Joel Brobecker <brobecker@adacore.com>
818
819 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
820 i[34567]86-*-solaris2.1[0-9]*.
821 * configure.tgt: Likewise.
822
823 2010-01-19 Joel Brobecker <brobecker@adacore.com>
824
825 * NEWS: Document the source command enhancement allowing it
826 to load Python scripts. Document the "set/show script-extension"
827 commands.
828
829 2010-01-19 Joel Brobecker <brobecker@adacore.com>
830
831 Add -Wunused-function to compile flags.
832 * configure.ac: Add -Wunused-function to build_warnings.
833 * configure: Regenerate.
834
835 2010-01-19 Joel Brobecker <brobecker@adacore.com>
836
837 "delete" ada-lex.c:input function, not used.
838 * ada-lex.l: #define YY_NO_INPUT.
839
840 2010-01-19 Joel Brobecker <brobecker@adacore.com>
841
842 Delete free_named_symtabs and associated cleanup.
843 * symfile.h (free_named_symtabs): Delete declaration.
844 * symfile.c: Remove some commented out code (clear_symtab_users_once).
845 (cashier_psymtab): Comment function out.
846 Delete declaration.
847 (free_named_symtabs): Delete.
848 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
849 * dbxread.c (end_psymtab): Likewise.
850 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
851 * exec.c (exec_close_1): Ditto.
852 * xcoffread.c (xcoff_end_psymtab): Likewise.
853
854 2010-01-19 Joel Brobecker <brobecker@adacore.com>
855
856 * stack.c (print_block_frame_labels): Comment function out.
857
858 2010-01-19 Joel Brobecker <brobecker@adacore.com>
859
860 Delete unused or undefined functions.
861 * breakpoint.c (ep_parse_optional_filename): Delete.
862 * dcache.c (dcache_write_line): Remove declaration.
863 * infrun.c (build_infrun): Remove declaration.
864 * tracepoint.c (tracepoint_save_command): Remove declaration.
865 * linux-nat.c (init_lwp_list): Delete. No longer used.
866 * event-loop.c (check_async_signal_handlers): Delete declaration.
867 * infrun.c (init_execution_control_state): Delete.
868 (proceed): Update comment to avoid mentioning
869 init_execution_control_state.
870 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
871 * ada-lang.c (ada_to_static_fixed_value): Delete.
872 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
873 * cp-namespace.c (cp_copy_usings): Delete.
874 * xml-syscall.c (xml_number_of_syscalls): Delete.
875 * progspace.c (find_program_space_by_num): Delete.
876 * inflow.c (handle_sigio): Delete declaration.
877 * hppa-tdep.c (hppa_alignof): Delete.
878 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
879 (mipsnbsd_core_osabi_sniffer): Delete.
880
881 2010-01-18 Tom Tromey <tromey@redhat.com>
882
883 PR c++/9680:
884 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
885 (CONST_CAST): New tokens.
886 (exp): Add new productions.
887 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
888 reinterpret_cast.
889 (is_cast_operator): New function.
890 (yylex): Handle cast operators specially.
891 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
892 UNOP_REINTERPRET_CAST>: New cases.
893 * expprint.c (print_subexp_standard): Likewise.
894 (op_name_standard): Likewise.
895 (dump_subexp_body_standard): Likewise.
896 * parse.c (operator_length_standard): Likewise.
897 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
898 UNOP_REINTERPRET_CAST.
899 * gdbtypes.c (class_types_same_p): New function.
900 (is_ancestor): Use it.
901 (is_public_ancestor): New function.
902 (is_unique_ancestor_worker): Likewise.
903 (is_unique_ancestor): Likewise.
904 * gdbtypes.h (class_types_same_p, is_public_ancestor)
905 (is_unique_ancestor): Declare.
906 * valops.c (value_reinterpret_cast): New function.
907 (dynamic_cast_check_1): Likewise.
908 (dynamic_cast_check_2): Likewise.
909 (value_dynamic_cast): Likewise.
910 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
911
912 2010-01-18 Joel Brobecker <brobecker@adacore.com>
913
914 Fix build failure when building without Python support.
915 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
916 is not defined.
917
918 2010-01-18 Joel Brobecker <brobecker@adacore.com>
919
920 Use XVS field type instead of doing a parallel lookup.
921 * ada-lang.c (ada_get_base_type): Follow the XVS field type
922 if it is a reference type instead of doing a type lookup using
923 the XVS field name.
924
925 2010-01-18 Joel Brobecker <brobecker@adacore.com>
926
927 Trust PAD types instead of using PAD___XVS.
928 * ada-lang.c (trust_pad_over_xvs): New static variable.
929 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
930 parallel XVS type, follow the XVS type instead of the PAD type.
931 (unwrap_value): Make sure that there is no parallel XVE type
932 before returning the value as is.
933 (set_ada_list, show_ada_list): New static variables.
934 (set_ada_command, show_ada_command): New functions.
935 (_initialize_ada_language): Add new "set/show ada" prefix commands.
936 Add new "set/show ada trust-PAD-over-XVS" setting.
937
938 2010-01-18 Tom Tromey <tromey@redhat.com>
939 Thiago Jung Bauermann <bauerman@br.ibm.com>
940
941 Allow "source" to load python scripts.
942 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
943 * python/python.c (source_python_script): New function.
944 * python/python.h (source_python_script): Add declaration.
945 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
946 (script_ext_off, script_ext_soft, script_ext_strict)
947 (script_ext_enums, script_ext_mode): New static constants.
948 (show_script_ext_mode, find_and_open_script): New functions.
949 (source_script): Enhance to handle Python scripts.
950 (init_cli_cmds): Add set/show script-extension commands.
951
952 2010-01-16 Stan Shebs <stan@codesourcery.com>
953
954 * tracepoint.h (struct trace_status): Use unsigned long long
955 instead of size_t.
956 * tracepoint.c (trace_status_command): Fix printf directive.
957 (trace_save_command): Check fwrite returns, fix printf directive.
958 (trace_filename): New global.
959 (tfile_open): Set it, check read returns.
960 (tfile_close): Free trace_filename.
961 (tfile_get_traceframe_address): Check read returns.
962 (tfile_trace_find): Ditto.
963 (tfile_fetch_registers): Ditto.
964 (tfile_xfer_partial): Ditto.
965 (tfile_get_trace_state_variable_value): Ditto.
966
967 2010-01-15 Stan Shebs <stan@codesourcery.com>
968
969 Add trace file support.
970 * tracepoint.h (enum trace_stop_reason): New enum.
971 (struct trace_status): New struct.
972 (parse_trace_status): Declare.
973 (struct uploaded_tp): Move here from remote.c,
974 add fields for actions.
975 (struct uploaded_tsv): New struct.
976 * tracepoint.c (tfile_ops): New target vector.
977 (trace_fd): New global.
978 (tfile_open): New function.
979 (tfile_close): New function.
980 (tfile_files_info): New function.
981 (tfile_get_trace_status): New function.
982 (tfile_get_traceframe_address): New function.
983 (tfile_trace_find): New function.
984 (tfile_fetch_registers): New function.
985 (tfile_xfer_partial): New function.
986 (tfile_get_trace_state_variable_value): New function.
987 (init_tfile_ops): New function.
988 (_initialize_tracepoint): Call it, add tfile target.
989 (trace_status): New global.
990 (current_trace_status): New function.
991 (trace_running_p): Remove, change all users to get from
992 current_trace_status()->running.
993 (get_trace_status): Remove.
994 (trace_status_command): Call target_get_trace_status directly,
995 report more detail including tracing stop reasons.
996 (trace_find_command): Always allow tfind on a file.
997 (trace_find_pc_command): Ditto.
998 (trace_find_tracepoint_command): Ditto.
999 (trace_find_line_command): Ditto.
1000 (trace_find_range_command): Ditto.
1001 (trace_find_outside_command): Ditto.
1002 (trace_frames_offset, cur_offset): Declare as off_t.
1003 (trace_regblock_size): Rename from reg_size, update users.
1004 (parse_trace_status): New function.
1005 (tfile_interp_line): New function.
1006 (disconnect_or_stop_tracing): Ensure current trace
1007 status before asking what to do.
1008 (stop_reason_names): New global.
1009 (trace_save_command): New command.
1010 (get_uploaded_tp): Move here from remote.c.
1011 (find_matching_tracepoint): Ditto.
1012 (merge_uploaded_tracepoints): New function.
1013 (parse_trace_status): Use stop_reason_names.
1014 (_initialize_tracepoint): Define tsave command.
1015 * target.h (target_ops): New fields to_save_trace_data,
1016 to_upload_tracepoints, to_upload_trace_state_variables,
1017 to_get_raw_trace_data, change to_get_trace_status
1018 to take a pointer to a status struct.
1019 (target_save_trace_data): New macro.
1020 (target_upload_tracepoints): New macro.
1021 (target_upload_trace_state_variables): New macro.
1022 (target_get_raw_trace_data): New macro.
1023 * target.c (update_current_target): Add new methods, change
1024 signature of to_get_trace_status.
1025 * remote.c (hex2bin): Make globally visible.
1026 (bin2hex): Ditto.
1027 (remote_download_trace_state_variable): Download name also.
1028 (remote_get_trace_status): Update parameter, use
1029 parse_trace_status.
1030 (remote_save_trace_data): New function.
1031 (remote_upload_tracepoints): New function.
1032 (remote_upload_trace_state_variables): New function.
1033 (remote_get_raw_trace_data): New function.
1034 (remote_start_remote): Use them.
1035 (_initialize_remote_ops): Add operations.
1036 * ax-gdb.c: Include breakpoint.h.
1037 * breakpoint.c (create_tracepoint_from_upload): Use
1038 break_command_really, return tracepoint, warn about unimplemented
1039 parts.
1040 * NEWS: Mention trace file addition.
1041
1042 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1043
1044 Fix compilation warning on gcc-3.4.
1045 * exec.c (print_section_info): Move the `displacement' variable
1046 initialization to its declaration.
1047
1048 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1049
1050 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
1051 comparison.
1052
1053 2010-01-15 Eric Botcazou <botcazou@adacore.com>
1054
1055 "info tasks" broken by typedefs in ATCB type definitions.
1056 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
1057 ada_check_typedef before retrieving the length of the type for
1058 regular fields.
1059
1060 2010-01-15 Joel Brobecker <brobecker@adacore.com>
1061
1062 Do not use name-based lookup for unconstrained packed arrays.
1063 * ada-lang.c (find_parallel_type_by_descriptive_type):
1064 Limit the fallback to name-based lookups to the case where
1065 the type is a constrained packed array.
1066
1067 2010-01-15 Joel Brobecker <brobecker@adacore.com>
1068
1069 Enhance gdb-gdb.py to handle main_type.type_specific.
1070 * gdb-gdb.py: Print the type-specific part of struct main_type.
1071
1072 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1073
1074 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
1075 * configure: Regenerate.
1076 * config.in: Regenerate.
1077 * utils.c: Include sys/resource.h.
1078 (dump_core, can_dump_core): New.
1079 (internal_vproblem): Update the comment. Check can_dump_core while
1080 setting dump_core_p. Replace two abort calls by dump_core calls.
1081
1082 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1083 Eli Zaretskii <eliz@gnu.org>
1084
1085 * NEWS: Document the PIE support.
1086
1087 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1088
1089 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
1090 (check_is_pie_binary, _initialize_linux_tdep): Remove.
1091
1092 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1093
1094 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
1095 Replace exec_entry_point call by bfd_get_start_address.
1096
1097 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1098
1099 Support Valgrind attachments broken by the PIE support.
1100 * auxv.c: Include gdbcore.h.
1101 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
1102 parameters ops, object and annex. Remove their assertions.
1103 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
1104 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
1105 (memory_xfer_auxv): ... here.
1106 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
1107 memory_xfer_auxv.
1108 * procfs.c (procfs_xfer_partial): Likewise.
1109 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
1110 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
1111 (svr4_solib_create_inferior_hook): Conditionalize the
1112 svr4_relocate_main_executable call.
1113
1114 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1115
1116 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
1117 target_section. Find SECT in current_target_sections, gdb_assert it.
1118 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
1119 New variable abfd.
1120 * symtab.c (lookup_objfile_from_block): Return the binary file instead
1121 of separate debug info file.
1122
1123 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1124
1125 Support PIEs with no symfile_objfile.
1126 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
1127 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
1128
1129 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1130
1131 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
1132 code part to ...
1133 (svr4_static_exec_displacement): ... a new function.
1134 (svr4_exec_displacement): New function.
1135 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
1136 new_offsets using alloca now. Remove variable old_chain and changed.
1137 Call objfile_relocate unconditionally now.
1138
1139 2010-01-14 Doug Evans <dje@google.com>
1140
1141 * gdbtypes.c (arch_flags_type): Fix comment.
1142 * gdbtypes.h (arch_composite_type): Fix comment.
1143
1144 2009-01-14 Tristan Gingold <gingold@adacore.com>
1145
1146 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
1147 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
1148 to symbol_file_add_from_bfd. Add OSO as separate objfile.
1149 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
1150 macho_add_oso_symfile.
1151 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
1152
1153 2010-01-14 Joel Brobecker <brobecker@adacore.com>
1154
1155 Tru64: Dead threads are never deleted.
1156 * dec-thread.c (dec_thread_ptid_is_alive): New function.
1157 (dec_thread_count_gdb_threads): Fix counter increment.
1158 (dec_thread_add_gdb_thread): Fix *listp increment.
1159 (resync_thread_list): Fix bug in deletion of dead threads that
1160 caused all threads to be deleted, instead of just the dead ones.
1161
1162 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
1163
1164 PR python/10705
1165
1166 * python/python-internal.h: Add lazy_string_object_type
1167 definition.
1168 (create_lazy_string_object, gdbpy_initialize_lazy_string)
1169 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
1170 * python/py-value.c (valpy_lazy_string): New function.
1171 (convert_value_from_python): Add lazy string conversion.
1172 * python/py-prettyprint.c (pretty_print_one_value): Check if
1173 return is also a lazy string.
1174 (print_string_repr): Add lazy string printing branch.
1175 (print_children): Likewise.
1176 * python/py-lazy-string.c: New file. Implement lazy strings.
1177 * python/python.c (_initialize_python): Call
1178 gdbpy_initialize_lazy_string.
1179 * varobj.c (value_get_print_value): Add lazy string printing
1180 branch. Account for encoding.
1181 * c-lang.c (c_printstr): Account for new encoding argument. If
1182 encoding is NULL, find encoding suited for type, otherwise use
1183 user encoding.
1184 * language.h (language_defn): Add encoding argument.
1185 (LA_PRINT_STRING): Likewise.
1186 * language.c (unk_lang_printstr): Update to reflect new encoding
1187 argument to language_defn.
1188 * ada-lang.h (ada_printstr): Likewise.
1189 * c-lang.h (c_printstr): Likewise.
1190 * p-lang.h (pascal_printstr);
1191 * f-lang.c (f_printstr): Likewise.
1192 * m2-lang.c (m2_printstr): Likewise.
1193 * objc-lang.c (objc_printstr): Likewise.
1194 * p-lang.c (pascal_printstr): Likewise.
1195 * scm-lang.c (scm_printstr): Likewise.
1196 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
1197 encoding argument.
1198 * ada-valprint.c (ada_printstr): Likewise.
1199 * f-valprint.c (f_val_print): Likewise
1200 * m2-valprint.c (m2_val_print): Likewise.
1201 * p-valprint.c (pascal_val_print): Likewise.
1202 * expprint.c (print_subexp_standard): Likewise.
1203 * valprint.c (val_print_string): Likewise.
1204 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
1205 (SUBDIR_PYTHON_SRCS): Likewise.
1206 (py-lazy-string.o): New rule.
1207
1208 2010-01-13 Doug Evans <dje@google.com>
1209
1210 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
1211 uninitialized" warning from gcc on local `tree'.
1212
1213 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
1214
1215 Implement core awareness.
1216
1217 * bcache.c (compare_ints): Remove
1218 (print_percentage): Use compare_positive_ints.
1219 * defs.h (compare_positive_ints): Declare.
1220 * linux-nat.h (struct lin_lwp): New field core.
1221 (linux_nat_core_of_thread_1): Declare.
1222 * linux-nat.c (add_lwp): Init the 'core' field.
1223 (linux_nat_wait_1): Record the core.
1224 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
1225 (linux_nat_add_target): Register the above.
1226 * linux-thread-db.c (update_thread_core): New.
1227 (thread_db_find_new_threads): Update core information for
1228 every thread.
1229 * remote.c (struct private_thread_info): New.
1230 (free_private_thread_info, demand_private_info): New.
1231 (PACKET_qXfer_threads, use_osdata_threads): New.
1232 (struct thread_item, threads_parsing_context
1233 (start_thread, end_thread, thread_attributes)
1234 (thread_children, threads_children, threads_elements): New.
1235 (remote_threads_info): Try qXfer:threads before anything
1236 else.
1237 (remote_protocol_packets): Register qXfer:threads.
1238 (remote_open_1): Init use_osdata_threads.
1239 (struct stop_reply): New field 'core'.
1240 (remote_parse_stop_reply): Parse core number.
1241 (process_stop_reply): Record core number.
1242 (remote_xfer_partial): Handle qXfer:threads.
1243 (remote_core_of_thread): New.
1244 (init_remote_ops): Register remote_core_of_thread.
1245 (_initialize_remote): Register qXfer:read.
1246 * target.c (target_core_of_thread): New
1247 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
1248 (struct target_ops): New field to_core_of_threads.
1249 (target_core_of_thread): Declare.
1250 * gdbthread.h (struct thread_info): New field private_dtor.
1251 * thread.c (print_thread_info): Report the core.
1252 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
1253 * utils.c (compare_positive_ints): New.
1254 * features/threads.dtd: New.
1255 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
1256 * mi/mi-main.c (struct collect_cores_data, collect_cores)
1257 (do_nothing, free_vector_of_osdata_items)
1258 (splay_tree_int_comparator, free_splay_tree): New.
1259 (print_one_inferior_data): Implemented printing of selected
1260 inferiors. Collect and print cores.
1261 (output_cores): New.
1262 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
1263 thread groups together with --available.
1264
1265 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1266
1267 * configure: Regenerate (for _STRUCTURED_PROC).
1268
1269 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1270
1271 Delete dead function.
1272 * ada-lang.c (extract_string): Delete. No longer used.
1273
1274 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1275
1276 Fix -Wunused warning in dec-thread.c.
1277 * dec-thread.c (dec_thread_count_gdb_threads)
1278 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
1279
1280 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1281
1282 * ada-valprint.c (ada_print_floating): Remove trailing space.
1283
1284 2010-01-12 Joel Brobecker <brobecker@adacore.com>
1285
1286 Add support for DW_AT_GNAT_descriptive_type.
1287 * gdbtypes.h (enum type_specific_kind): New enum.
1288 (struct main_type) [type_specific_field]: New component.
1289 [type_specific]: Add new component "gnat_stuff".
1290 (struct gnat_aux_type): New type.
1291 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
1292 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
1293 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
1294 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
1295 (TYPE_SPECIFIC_FIELD): New macros.
1296 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
1297 type does not hold any cplus-specific data.
1298 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
1299 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
1300 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
1301 cplus-specific data.
1302 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
1303 Set new component TYPE_SPECIFIC_FIELD (type).
1304 (gnat_aux_default): New constant.
1305 (allocate_gnat_aux_type): New function.
1306 (init_type): Add initialization the type-specific stuff for
1307 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
1308 (print_gnat_stuff): New function.
1309 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
1310 specific data. Adjust code that prints the contents of the
1311 type-specific union using the TYPE_SPECIFIC_FIELD value.
1312 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
1313 the type cplus stuff for Ada types.
1314 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
1315 Error out if these routines are called with an Ada type.
1316 (read_structure_type, read_array_type, read_subrange_type):
1317 Add call to set_descriptive_type.
1318 (set_die_type): Initialize the gnat-specific data if necessary.
1319 (need_gnat_info, die_descriptive_type, set_descriptive_type):
1320 New functions.
1321 * ada-lang.c (decode_constrained_packed_array_type): Use
1322 decode_constrained_packed_array_type instead of doing a standard
1323 lookup to locate a parallel type.
1324 (find_parallel_type_by_descriptive_type): New function.
1325 (ada_find_parallel_type_with_name): New function.
1326 (ada_find_parallel_type): Reimplement using
1327 ada_find_parallel_type_with_name.
1328 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
1329 to check if type has a cplus stuff.
1330 * linespec.c (total_number_of_methods): Likewise.
1331 * mdebugread.c (new_type): Likewise.
1332
1333 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1334
1335 * NEWS: Document the 0b binary number prefix parsing.
1336
1337 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1338
1339 * objfiles.c (objfile_relocate1): Change the return type to int.
1340 Describe the new return value. Return non-zero if data changed.
1341 (objfile_relocate): New variable changed. Set it. Call
1342 breakpoint_re_set depending on CHANGED.
1343
1344 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1345
1346 Implement binary numbers parsing.
1347 * c-exp.y (parse_number): New case 'b' and 'B'.
1348
1349 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1350 Tristan Gingold <gingold@adacore.com>
1351
1352 * solib.c (info_sharedlibrary_command): Replace
1353 objfile_has_partial_symbols and objfile_has_full_symbols calls by
1354 objfile_has_symbols.
1355
1356 2010-01-10 Joel Brobecker <brobecker@adacore.com>
1357
1358 * NEWS: Document the improvements made to the mips-irix port.
1359
1360 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1361
1362 Fix the documentation of valprint.c:value_print.
1363 * valprint.c (value_print): Update the function description to
1364 mention that the syntax of the output follows the current_language,
1365 not necessarily C.
1366
1367 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1368
1369 Fix displacement of separate debug info files.
1370 * objfiles.c (objfile_relocate): Rename to ...
1371 (objfile_relocate1): ... here and make it static. Extend the comment.
1372 (objfile_relocate): New function.
1373 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
1374 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
1375 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
1376 allocated using alloca.
1377 * symfile.c (copy_section_addr_info): Remove.
1378 (build_section_addr_info_from_objfile): Make it global. New variables
1379 addr_bit and mask, use them.
1380 * symfile.h (build_section_addr_info_from_objfile): New prototype.
1381 (copy_section_addr_info): Remove.
1382
1383 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1384
1385 Signal unwinder for mips-irix N32.
1386 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
1387 tramp-frame.h.
1388 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
1389 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
1390 (SIGCONTEXT_LO_OFF): New macros.
1391 (mips_irix_n32_tramp_frame_init): New function.
1392 (mips_irix_n32_tramp_frame): New static constant.
1393 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
1394
1395 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1396
1397 Breakpoint in shared library does not work on mips-irix.
1398 * procfs.c: #include "observer.h".
1399 (procfs_inferior_created): New function, moving here the code
1400 which unsets the syssgi syscall-exit notifications.
1401 (procfs_create_inferior): Remove the code which unsets the syssgi
1402 syscall-exit notifications. It is too early to do this here.
1403 (_initialize_procfs): Attach the procfs_inferior_created observer.
1404
1405 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1406
1407 Wrong return convention for arrays (mips-irix).
1408 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
1409 128 bits or smaller are returned the same way as structs
1410 and unions of the the same size.
1411
1412 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1413
1414 Cannot set the PC on mips-irix.
1415 * irix5-nat.c (fill_gregset): Check regno against the raw PC
1416 register number, no the cooked one.
1417
1418 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1419
1420 Error while loading core file on mips-irix.
1421 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
1422 if debugging from a core file.
1423
1424 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1425
1426 GDB hangs when attaching to process on mips-irix.
1427 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
1428 attaching to a process.
1429
1430 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1431
1432 Use the correct breakpoint instruction on mips-irix.
1433 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
1434 containing the correct breakpoint instruction to use on mips-irix.
1435 Use it when the osabi is GDB_OSABI_IRIX.
1436
1437 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1438
1439 -Wunused warning in procfs.c (mips-irix only).
1440 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
1441 throughout instead of using praddset and prdelset respectively.
1442
1443 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1444
1445 GDB crash while stepping into function.
1446 * infrun.c (handle_inferior_event): Refetch the current frame
1447 after handling what.main_action, in case that pointer became
1448 dangling.
1449
1450 2010-01-09 Joel Brobecker <brobecker@adacore.com>
1451
1452 Fix build failure of solaris-hosted cross debuggers.
1453 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
1454
1455 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
1456
1457 Fix build failure on sparc-solaris.
1458 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
1459
1460 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1461
1462 Move some symfile code into subroutines.
1463 * symfile.h (relative_addr_info_to_section_offsets)
1464 (addr_info_make_relative): New prototypes.
1465 * symfile.c (default_symfile_offsets): Move a part to ...
1466 (relative_addr_info_to_section_offsets): ... this new function.
1467 (default_symfile_offsets): Call it.
1468 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
1469 this part to ...
1470 (addr_info_make_relative): ... this new function.
1471
1472 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1473
1474 Add from_tty to solib_create_inferior_hook.
1475 * infcmd.c (post_create_inferior): Move solib_add after
1476 solib_create_inferior_hook. Pass from_tty to
1477 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
1478 0 from_tty and comment why.
1479 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
1480 * linux-nat.c (linux_child_follow_fork): Likewise.
1481 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
1482 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
1483 from_tty.
1484 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
1485 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1486 * solib-null.c (null_solib_create_inferior_hook): Likewise.
1487 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1488 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
1489 * solib-som.c (som_solib_create_inferior_hook): Likewise.
1490 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
1491 Pass it to svr4_so_ops.solib_create_inferior_hook.
1492 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
1493 from_tty.
1494 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
1495 solib_add.
1496 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
1497 enable_break.
1498 * solib-target.c (solib_target_solib_create_inferior_hook): New
1499 parameter from_tty.
1500 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
1501 it to ops->solib_create_inferior_hook.
1502 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
1503 Move solib_add after solib_create_inferior_hook, call it now with
1504 from_tty as 0. New comment there.
1505 * solib.h (solib_create_inferior_hook): New parameter from_tty.
1506 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
1507 Likewise.
1508
1509 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
1510
1511 Fix multiexec race.
1512 * infrun.c (handle_inferior_event): Use get_thread_regcache
1513 with events ptid, not get_current_regcache.
1514
1515 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1516
1517 GDB crash with empty executable name (MinGW).
1518 * source.c (openp): Add assert that parameter string is not NULL.
1519 if parameter string is an empty string, then return with a failure
1520 immediately.
1521
1522 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1523
1524 Get rid of support for VAX Floats.
1525 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1526 (ada_vax_float_print_function): Delete.
1527 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
1528 (ada_vax_float_print_function): Delete.
1529 * ada-typeprint.c (print_vax_floating_point_type): Delete.
1530 (ada_print_type): Remove support for VAX floats.
1531 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
1532
1533 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 * stabsread.c (read_args): Handle zero arguments.
1536
1537 2009-01-08 Joel Brobecker <brobecker@adacore.com>
1538
1539 Cannot find in-tree libiconv.a after reconfigure.
1540 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
1541 that we can use, then cache the path to this archive.
1542 * configure: Regenerate.
1543
1544 2010-01-07 Stan Shebs <stan@codesourcery.com>
1545
1546 Make tracepoint operations go through target vector.
1547 * target.h (enum trace_find_type): New enum.
1548 (struct target_ops): New fields to_trace_init,
1549 to_download_tracepoint, to_download_trace_state_variable,
1550 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
1551 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
1552 to_set_disconnected_tracing.
1553 (target_trace_init): New macro.
1554 (target_download_tracepoint): New macro.
1555 (target_download_trace_state_variable): New macro.
1556 (target_trace_start): New macro.
1557 (target_trace_set_readonly_regions): New macro.
1558 (target_get_trace_status): New macro.
1559 (target_trace_stop): New macro.
1560 (target_trace_find): New macro.
1561 (target_get_trace_state_variable_value): New macro.
1562 (target_set_disconnected_tracing): New macro.
1563 * target.c (update_current_target): Inherit and set defaults for
1564 tracepoint operations.
1565 * tracepoint.c (default_collect): Make globally visible.
1566 (target_is_remote): Remove, along with all calls.
1567 (tvariables_info): Call target_get_trace_state_variable_value.
1568 (remote_set_transparent_ranges): Remove.
1569 (trace_start_command): Call target_trace_init,
1570 target_download_tracepoint, etc.
1571 (download_tracepoint): Remove.
1572 (trace_stop_command): Simplify.
1573 (stop_tracing): Call target_trace_stop.
1574 (get_trace_status): Call target_get_trace_status.
1575 (trace_status_command): Add case for targets that cannot trace.
1576 (finish_tfind_command): Change to take numerical arguments, call
1577 target_trace_find.
1578 (trace_find_command): Update call to finish_tfind_command.
1579 (trace_find_pc_command): Ditto.
1580 (trace_find_tracepoint_command): Ditto.
1581 (trace_find_line_command): Ditto.
1582 (trace_find_range_command): Ditto.
1583 (trace_find_outside_command): Ditto.
1584 (set_disconnected_tracing_value): Call
1585 target_set_disconnected_tracing.
1586 * remote.c: Add protocol encoding bits from tracepoint.c.
1587 (trace_error): Move from tracepoint.c.
1588 (remote_get_noisy_reply): Ditto.
1589 (free_actions_list_cleanup_wrapper): Ditto.
1590 (free_actions_list): Ditto.
1591 (remote_trace_init): New function.
1592 (remote_download_tracepoint): New function.
1593 (remote_download_trace_state_variable): New function.
1594 (remote_trace_set_readonly_regions): New function.
1595 (remote_trace_start): New function.
1596 (remote_get_trace_status): New function.
1597 (remote_trace_stop): New function.
1598 (remote_trace_find): New function.
1599 (remote_download_trace_state_variable): New function.
1600 (remote_set_disconnected_tracing): New function.
1601 (init_remote_ops): Add tracepoint operations.
1602
1603 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
1604
1605 2010-01-07 Tristan Gingold <gingold@adacore.com>
1606
1607 * symfile.c (build_section_addr_info_from_objfile): New function.
1608 (symbol_file_add_separate): Don't use offsets from objfile but
1609 built an addr info.
1610
1611 2010-01-06 Stan Shebs <stan@codesourcery.com>
1612
1613 Support disconnected tracing.
1614 * infcmd.c (detach_command): Ask whether to stop tracing.
1615 * cli/cli-cmds.c (quit_command): Ditto.
1616 * breakpoint.h (struct breakpoint): New field number_on_target.
1617 * breakpoint.c (create_tracepoint_from_upload): New function.
1618 (get_tracepoint_by_number_on_target): New function.
1619 * remote.c (struct remote): New field disconnected_tracing.
1620 (remote_disconnected_tracing_feature): New function.
1621 (remote_protocol_features): Add DisconnectedTracing.
1622 (struct uploaded_tp): New struct.
1623 (uploaded_tps): New global.
1624 (get_uploaded_tp): New function.
1625 (find_matching_tracepoint): New function.
1626 (remote_get_tracing_state): New function.
1627 (remote_start_remote): Call it.
1628 * tracepoint.c (disconnected_tracing): New global.
1629 (trace_start_command): Initialize number_on_target.
1630 (stop_tracing): New function, split out from...
1631 (trace_stop_command): Call stop_tracing.
1632 (get_trace_status): New function, split out from...
1633 (trace_status_command): Call get_trace_status, add info on
1634 disconnection behavior.
1635 (disconnect_or_stop_tracing): New function.
1636 (finish_tfind_command): Translate from number on target.
1637 (trace_find_tracepoint_command): Translate to number on target.
1638 (send_disconnected_tracing_value): New function.
1639 (set_disconnected_tracing): New function.
1640 (_initialize_tracepoint): Add disconnected-tracing variable.
1641 * NEWS: Mention disconnected tracing.
1642
1643 2010-01-06 Tristan Gingold <gingold@adacore.com>
1644
1645 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
1646 parameter to main_objfile. Iterate on all separate debug objfiles.
1647 * symfile.h (symbol_file_add_separate)
1648 (find_separate_debug_file_by_debuglink): Remove parameter names.
1649 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
1650 (reread_symbols): Use free_objfile_separate_debug.
1651 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
1652 Adjust comment.
1653 (objfile_separate_debug_iterate, add_separate_debug_objfile)
1654 (free_objfile_separate_debug): New prototypes.
1655 * objfiles.c (objfile_separate_debug_iterate): New function.
1656 (add_separate_debug_objfile, free_objfile_separate_debug): New
1657 functions.
1658 (free_objfile): Use free_objfile_separate_debug. Adjust for
1659 multiple separate debug objfile.
1660 (objfile_has_symbols): Adjust comment. Iterate on all separate
1661 debug objfiles.
1662 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
1663 debug objfile.
1664 (lookup_minimal_symbol_text): Ditto.
1665 (lookup_minimal_symbol_by_pc_name): Ditto.
1666 (lookup_minimal_symbol_solib_trampoline): Ditto.
1667 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
1668 debug objfiles.
1669
1670 2010-01-05 Stan Shebs <stan@codesourcery.com>
1671
1672 Add fast tracepoints.
1673 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
1674 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
1675 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
1676 * breakpoint.c (tracepoint_type): New function.
1677 (ALL_TRACEPOINTS): Use it.
1678 (should_be_inserted): Ditto.
1679 (bpstat_check_location): Ditto.
1680 (print_one_breakpoint_location): Ditto.
1681 (user_settable_breakpoint): Ditto.
1682 (set_breakpoint_location_function): Ditto.
1683 (disable_breakpoints_in_shlibs): Ditto.
1684 (delete_trace_command): Ditto.
1685 (print_it_typical): Add bp_fast_tracepoint case.
1686 (bpstat_what): Ditto.
1687 (print_one_breakpoint_location): Ditto.
1688 (allocate_bp_location): Ditto.
1689 (mention): Ditto.
1690 (breakpoint_re_set_one): Ditto.
1691 (disable_command): Ditto.
1692 (enable_command): Ditto.
1693 (check_fast_tracepoint_sals): New function.
1694 (break_command_really): Call it.
1695 (ftrace_command): New function.
1696 (_initialize_breakpoint): Add ftrace command.
1697 * gdbarch.sh (fast_tracepoint_valid_at): New.
1698 * gdbarch.h, gdbarch.c: Regenerate.
1699 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
1700 (i386_gdbarch_init): Use it.
1701 * remote.c (struct remote_state): New field fast_tracepoints.
1702 (PACKET_FastTracepoints): New packet config type.
1703 (remote_fast_tracepoint_feature): New function.
1704 (remote_protocol_features): Add FastTracepoints.
1705 (remote_supports_fast_tracepoints): New function.
1706 (_initialize_remote): Add FastTracepoints.
1707 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
1708 * NEWS: Mention fast tracepoints.
1709
1710 2010-01-06 Joel Brobecker <brobecker@adacore.com>
1711
1712 * gdb-gdb.py: New file.
1713
1714 2010-01-05 Michael Snyder <msnyder@vmware.com>
1715
1716 * infrun.c (handle_inferior_event): Fix typo in comment.
1717
1718 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1719
1720 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
1721
1722 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1723
1724 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
1725 and s390x-linux64.
1726 (s390-linux32-expedite): Define.
1727 (s390-linux64-expedite): Define.
1728 (s390x-linux64-expedite): Define.
1729 * features/s390-acr.xml: New file.
1730 * features/s390-fpr.xml: New file.
1731 * features/s390-core32.xml: New file.
1732 * features/s390-core64.xml: New file.
1733 * features/s390x-core64.xml: New file.
1734 * features/s390-linux32.xml: New file.
1735 * features/s390-linux64.xml: New file.
1736 * features/s390x-linux64.xml: New file.
1737 * features/s390-linux32.c: New generated file.
1738 * features/s390-linux64.c: New generated file.
1739 * features/s390x-linux64.c: New generated file.
1740
1741 * regformats/s390-linux32.dat: New generated file.
1742 * regformats/s390-linux64.dat: New generated file.
1743 * regformats/s390x-linux64.dat: New generated file.
1744 * regformats/reg-s390.dat: Remove.
1745 * regformats/reg-s390x.dat: Remove.
1746
1747 * s390-nat.c: Include "auxv.h" and <elf.h>.
1748 (HWCAP_S390_HIGH_GPRS): Define if undefined.
1749 (s390_target_wordsize): New function.
1750 (s390_auxv_parse): Likewise.
1751 (s390_get_hwcap): Likewise.
1752 (s390_read_description): Likewise.
1753 (_initialize_s390_nat): Install s390_auxv_parse and
1754 s390_read_description.
1755
1756 * s390-tdep.c: Include "features/s390-linux32.c",
1757 "features/s390-linux64.c", and "features/s390x-linux64.c".
1758 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
1759 (s390_register_call_saved): New function.
1760 (s390_register_name): Remove.
1761 (s390_register_type): Remove.
1762 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
1763 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
1764 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
1765 (s390_pseudo_register_name): New function.
1766 (s390_pseudo_register_type): New function.
1767 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
1768 Handle full GPR pesudos and varying pseudo register numbers.
1769 (s390_pseudo_register_write): Likewise
1770 (s390x_pseudo_register_read): Remove.
1771 (s390x_pseudo_register_write): Likewise.
1772 (s390_register_group): Remove.
1773 (s390_pseudo_register_group): New function.
1774 (s390_regmap_gregset): Add GPR upper halves.
1775 (s390x_regmap_gregset): Likewise.
1776 (s390_regmap_fpregset): Likewise.
1777 (s390_regmap_upper): New global variable.
1778 (s390_upper_regset): New global variable.
1779 (s390_upper_regset_sections): New global variable.
1780 (s390_regset_from_core_section): Handle GPR upper halves.
1781 (s390_core_read_description): New function.
1782 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
1783 register information. Handle varying pseudo register numbers.
1784 (s390_backchain_frame_unwind_cache): Likewise.
1785 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
1786 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
1787 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
1788 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
1789 Handle varying pseudo register numbers.
1790 (s390_unwind_pc): Handle varying pseudo register numbers.
1791 (s390_dwarf2_prev_register): New function.
1792 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
1793 register information. Handle varying pseudo register numbers.
1794 Install s390_dwarf2_prev_register to unwind full GPRs.
1795 (s390_gdbarch_init): Handle target descriptions. Assign varying
1796 pseudo register numbers. Install s390_adjust_frame_regnum.
1797 (_initialize_s390_tdep): Initialize target descriptions.
1798
1799 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
1800 (S390_NUM_REGS): Redefine to include upper half registers.
1801 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
1802 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
1803 (tdesc_s390_linux32): Add declaration.
1804 (tdesc_s390_linux64): Likewise.
1805 (tdesc_s390x_linux64): Likewise.
1806
1807 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1808
1809 * regset.h (struct core_regset_section): Add HUMAN_NAME.
1810 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
1811 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1812 (ppc_linux_vmx_regset_sections): Likewise.
1813 (ppc_linux_fp_regset_sections): Likewise.
1814
1815 * corelow.c (get_core_register_section): Constify arguments.
1816 (get_core_registers): Use gdbarch_core_regset_sections instead
1817 of hard-coded platform-specific register section names.
1818
1819 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1820
1821 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
1822 a register, assume the least-significant part is used.
1823 (write_pieced_value): Likewise.
1824
1825 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1826
1827 * printcmd.c: Include "arch-utils.h".
1828 (do_one_display): Re-parse expression if current architecture changed.
1829
1830 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1831 Joel Brobecker <brobecker@adacore.com>
1832
1833 * gdbtypes.c (check_typedef): New comment on type length.
1834 * value.c (allocate_value_lazy): Remove the unused atype variable. New
1835 comment on type length.
1836 (value_primitive_field): Keep the original TYPE value, new comment.
1837
1838 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1839
1840 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
1841 p_start. Change != comparisons to > and < comparisons.
1842
1843 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1844
1845 * cli/cli-script.c (process_next_line): Check P2 overrun.
1846
1847 2009-01-01 Joel Brobecker <brobecker@adacore.com>
1848
1849 Update the copyright hearder to add year 2010 for most GDB files.
1850
1851 2009-01-01 Joel Brobecker <brobecker@adacore.com>
1852
1853 Fix build failure in inf-ptrace.c.
1854 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
1855
1856 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1857
1858 * top.c (print_gdb_version): Update copyright year.
1859
1860 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1861
1862 Fix break *FUN'address thread NUM.
1863 * ada-lex.l (task): Expand rule to also match the thread keyword.
1864
1865 2010-01-01 Joel Brobecker <brobecker@adacore.com>
1866
1867 Fix break *FUN'address task NUM.
1868 * ada-lex.l (task): New rule.
1869 * ada-lang.c (valid_task_id): Make sure the Ada task list has
1870 been built before using it.
1871
1872 For older changes see ChangeLog-2009.
1873 \f
1874 Local Variables:
1875 mode: change-log
1876 left-margin: 8
1877 fill-column: 74
1878 version-control: never
1879 coding: utf-8
1880 End:
This page took 0.068577 seconds and 4 git commands to generate.