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