bfd/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
2
3 * windows-nat.c: Throughout, fix format strings and casts of
4 printf-like functions to avoid type related warnings on all
5 platforms.
6 (handle_output_debug_string): Fetch context information address
7 from debug string using string_to_core_addr.
8
9 2013-02-27 Jiong Wang <jiwang@tilera.com>
10
11 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
12 * regformats/reg-tilegx32.dat: New.
13
14 2013-02-27 Jiong Wang <jiwang@tilera.com>
15
16 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
17
18 2013-02-27 Jiong Wang <jiwang@tilera.com>
19
20 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
21
22 2013-02-27 Yao Qi <yao@codesourcery.com>
23 Pedro Alves <palves@redhat.com>
24
25 * tracepoint.c (tfile_trace_find): For tfind
26 pc/tp/range/outside, look for the next trace frame instead of
27 always starting from frame 0.
28
29 2013-02-26 Anthony Green <green@moxielogic.com>
30
31 * configure.tgt: Add support for moxie-*-rtems* target.
32
33 2013-02-25 Pedro Alves <palves@redhat.com>
34
35 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
36 warning text.
37
38 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
39
40 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
41 if $fp is used as the virtual frame pointer.
42
43 2013-02-23 Alan Modra <amodra@gmail.com>
44
45 * elfread.c (elf_symtab_read): Do not use udata.p here to find
46 symbol size.
47 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
48 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
49 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
50 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
51
52 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
53
54 Code cleanup.
55 * elfread.c (build_id_bfd_get): Make the return type const.
56 (build_id_verify): Make the check parameter const.
57 (build_id_to_debug_filename): Make the build_id parameter and variable
58 data const.
59 (find_separate_debug_file_by_buildid): Make the variable build_id const.
60
61 2013-02-21 Alan Modra <amodra@gmail.com>
62
63 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
64
65 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
66
67 Add a new method 'disassemble' to gdb.Architecture class.
68 * python/py-arch.c (archpy_disassmble): Implementation of the
69 new method gdb.Architecture.disassemble.
70 (arch_object_methods): Add entry for the new method.
71
72 2013-02-20 Jiong Wang <jiwang@tilera.com>
73
74 * MAINTAINERS (Write After Approval): Add myself to the list.
75
76 2013-02-19 Pedro Alves <palves@redhat.com>
77
78 Garbage collect 'struct monitor_ops'::load_routine.
79
80 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
81 * monitor.c (monitor_load): No longer call
82 current_monitor->load_routine.
83 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
84 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
85 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
86
87 2013-02-19 Pedro Alves <palves@redhat.com>
88
89 PR gdb/15161
90
91 Harmonize with generic_load.
92
93 * monitor.c: Include "readline/readline.h".
94 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
95 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
96 long/strtol for the 'load_offset' local. Error out if no argument
97 is given or if too many arguments are given. Tilde expand the
98 passed in file name.
99
100 2013-02-19 Kai Tietz <ktietz@redhat.com>
101
102 PR gdb/15161
103 * symfile.c (load_section_data): Change type of load_offset
104 to CORE_ADDR.
105 (generic_load): User strtoulst instead of strtoul for conversion
106 of load_offset.
107
108 2013-02-19 Jiong Wang <jiwang@tilera.com>
109
110 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
111 for return address, "lr" register, saved on stack.
112 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
113 after we invoke tilegx_analyze_prologue.
114
115 2013-02-19 Jiong Wang <jiwang@tilera.com>
116
117 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
118
119 2013-02-19 Jiong Wang <jiwang@tilera.com>
120
121 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
122
123 2013-02-19 Jiong Wang <jiwang@tilera.com>
124
125 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
126 (tilegx_write_pc): New function.
127 (tilegx_cannot_reference_register): Return zero if REGNO
128 is TILEGX_FAULTNUM_REGNUM.
129 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
130 (tilegx_register_name): Add handling of "faultnum" register.
131 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
132 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
133 handling of TILEGX_FAULTNUM_REGNUM.
134 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
135
136 2013-02-19 Jiong Wang <jiwang@tilera.com>
137
138 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
139 should be aligned to 64bit.
140
141 2013-02-19 Kai Tietz <ktietz@redhat.com>
142
143 * windows-nat.c (windows_xfer_memory): Fix debug-output
144 for LLP64.
145
146 2013-02-19 Lei Liu <lei.liu2@windriver.com>
147
148 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
149 Don't check DSP register number if HAVE_DSP is not set.
150
151 2013-02-19 Alan Modra <amodra@gmail.com>
152
153 * elfread.c (struct build_id): Delete. Use struct elf_build_id
154 throughout file instead.
155 (build_id_bfd_get): Update to use new elf_tdata build_id field.
156 Don't xmalloc return value.
157 (build_id_verify): Similarly. Don't xfree.
158 (build_id_to_debug_filename): Update.
159 (find_separate_debug_file_by_buildid): Update, don't xfree.
160
161 2013-02-18 Tom Tromey <tromey@redhat.com>
162
163 PR gdb/15102:
164 * dwarf2read.c (read_subrange_type): Use result of
165 'check_typedef'.
166
167 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
168
169 * frame.c: Remove one extra white space after #include
170 directive.
171
172 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
173
174 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
175
176 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
177
178 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
179 and dir commands into an if block.
180
181 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
182
183 * python/py-breakpoint (struct pybp_code): Use int instead of
184 enum type_code.
185
186 2013-02-15 Pedro Alves <pedro@codesourcery.com>
187 Hafiz Abid Qadeer <abidh@codesourcery.com>
188
189 * NEWS: Mention new field "trace-file".
190 * tracepoint.c (trace_status_mi): Output "trace-file" field.
191 (tfile_open): Record the trace file's filename in the trace
192 status.
193 (tfile_files_info): Mention the name of the trace file.
194 Check the "filename" field explicitely.
195 (trace_status_command): Explicitely check "filename" field.
196 (trace_find_command): Ditto.
197 (trace_find_pc_command): Ditto.
198 (trace_find_tracepoint_command): Ditto.
199 (trace_find_line_command): Ditto.
200 (trace_find_range_command): Ditto.
201 (trace_find_outside_command): Ditto.
202 * tracepoint.h (struct trace_status) <from_file>: Rename it
203 to "filename" and make it hold the trace file's filename
204 instead of a boolean.
205 * remote.c (remote_get_trace_status): Initialize "filename"
206 field with NULL instead of 0.
207
208 2013-02-15 Yao Qi <yao@codesourcery.com>
209
210 * remote.c: Fix a typo.
211
212 2013-02-14 Pierre Muller <muller@sourceware.org>
213
214 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
215
216 2013-02-14 Pedro Alves <palves@redhat.com>
217
218 * utils.c (savestring): Don't #undef it. Move function to
219 common/common-utils.c.
220 * common/common-utils.c: Include gdb_string.h.
221 (savestring): Move here from utils.c.
222 * common/common-utils.h (savestring): Declare.
223
224 2013-02-14 Pedro Alves <palves@redhat.com>
225
226 * utils.c (savestring): Rename parameter 'size' to 'len'.
227
228 2013-02-14 Pedro Alves <palves@redhat.com>
229 Yufeng Zhang <yufeng.zhang@arm.com>
230
231 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
232 (aarch64_inferior_data, struct aarch64_inferior_data):
233 Delete.
234 (struct aarch64_process_info): New.
235 (aarch64_process_list): New global.
236 (aarch64_find_process_pid, aarch64_add_process)
237 (aarch64_process_info_get): New functions.
238 (aarch64_inferior_data_get): Delete.
239 (aarch64_process_info_get): New function.
240 (aarch64_forget_process): New function.
241 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
242 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
243 aarch64_get_debug_reg_state.
244 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
245 instead of linux_nat_iterate_watchpoint_lwps.
246 (aarch64_linux_new_fork): New function.
247 (aarch64_linux_child_post_startup_inferior): Use
248 aarch64_forget_process instead of aarch64_init_debug_reg_state.
249 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
250 (aarch64_linux_remove_hw_breakpoint)
251 (aarch64_handle_aligned_watchpoint)
252 (aarch64_handle_unaligned_watchpoint)
253 (aarch64_linux_insert_watchpoint)
254 (aarch64_linux_remove_watchpoint)
255 (aarch64_linux_stopped_data_address): Adjust to pass the current
256 process id to aarch64_debug_reg_state.
257 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
258 linux_nat_new_fork hook, and aarch64_forget_process as
259 linux_nat_forget_process hook; remove the call to
260 register_inferior_data_with_cleanup.
261
262 2013-02-14 Pedro Alves <palves@redhat.com>
263
264 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
265 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
266 lval_memory.
267
268 2013-02-14 Pedro Alves <pedro@codesourcery.com>
269 Hafiz Abid Qadeer <abidh@codesourcery.com>
270
271 * tracepoint.h (validate_trace_state_variable_name): Declare.
272 * tracepoint.c (validate_trace_state_variable_name): New.
273 (trace_variable_command): Parse the trace state variable's name
274 without using parse_expression. Do several validations.
275 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
276 trace state variable's name with parse_expression. Validate it.
277
278 2013-02-14 Yao Qi <yao@codesourcery.com>
279
280 * infcmd.c (breakpoint_proceeded): Remove it.
281
282 2013-02-14 Yao Qi <yao@codesourcery.com>
283
284 * tracepoint.c (end_actions_pseudocommand): Make it static.
285 (while_stepping_pseudocommand): Likewise.
286 * tracepoint.h (end_actions_pseudocommand): Remove the
287 declaration.
288 (while_stepping_pseudocommand): Likewise.
289
290 2013-02-14 Yao Qi <yao@codesourcery.com>
291
292 * cli/cli-decode.c (help_cmd): Remove the declaration of
293 "cmdlist".
294 (help_all): Likewise.
295
296 2013-02-13 Pedro Alves <palves@redhat.com>
297
298 * amd64-linux-nat.c (update_debug_registers_callback):
299 Update comment.
300 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
301 iterate_over_lwps.
302 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
303 i386_debug_reg_state.
304 (amd64_linux_new_fork): New function.
305 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
306 linux_nat_new_fork hook, and i386_forget_process as
307 linux_nat_forget_process hook.
308 * i386-linux-nat.c (update_debug_registers_callback):
309 Update comment.
310 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
311 iterate_over_lwps.
312 (i386_linux_prepare_to_resume): Pass the lwp's pid to
313 i386_debug_reg_state.
314 (i386_linux_new_fork): New function.
315 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
316 linux_nat_new_fork hook, and i386_forget_process as
317 linux_nat_forget_process hook.
318 * i386-nat.c (i386_init_dregs): Delete.
319 (i386_inferior_data, struct i386_inferior_data):
320 Delete.
321 (struct i386_process_info): New.
322 (i386_process_list): New global.
323 (i386_find_process_pid, i386_add_process, i386_process_info_get):
324 New functions.
325 (i386_inferior_data_get): Delete.
326 (i386_process_info_get): New function.
327 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
328 (i386_forget_process): New function.
329 (i386_cleanup_dregs): Rewrite.
330 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
331 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
332 (i386_stopped_data_address, i386_insert_hw_breakpoint)
333 (i386_remove_hw_breakpoint): Adjust to pass the current process id
334 to i386_debug_reg_state.
335 (i386_use_watchpoints): Don't register inferior data.
336 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
337 adjust comment.
338 (i386_forget_process): Declare.
339 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
340 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
341 New static globals.
342 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
343 (add_initial_lwp): New, factored out from ...
344 (add_lwp): ... this. Don't check the number of lwps before
345 calling linux_nat_new_thread.
346 (linux_nat_iterate_watchpoint_lwps): Delete.
347 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
348 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
349 forks and vforks.
350 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
351 initial lwp.
352 (linux_nat_kill, linux_nat_mourn_inferior): Call
353 linux_nat_forget_process.
354 (linux_nat_set_new_fork, linux_nat_set_forget_process)
355 (linux_nat_forget_process): New functions.
356 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
357 type.
358 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
359 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
360 types.
361 (linux_nat_set_new_fork, linux_nat_set_forget_process)
362 (linux_nat_forget_process): New declarations.
363
364 * amd64fbsd-nat.c (super_mourn_inferior): New global.
365 (amd64fbsd_mourn_inferior): New function.
366 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
367 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
368
369 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
370
371 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
372 Adding _().
373
374 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
375
376 * aarch64-linux-nat.c (debug_reg_change_callback)
377 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
378 %s and phex().
379
380 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
381
382 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
383 with LONGEST.
384
385 2013-02-13 Pedro Alves <palves@redhat.com>
386 Hafiz Abid Qadeer <abidh@codesourcery.com>
387
388 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
389
390 2013-02-12 Tom Tromey <tromey@redhat.com>
391
392 PR symtab/11464:
393 * c-exp.y (lex_one_token): Initialize other fields of yylval on
394 NAME return.
395 (classify_inner_name): Remove 'first_name' argument, add
396 'context'. Remove unused variable.
397 (yylex): Explicitly maintain the context type. Exit loop earlier
398 if NAME result is seen.
399
400 2013-02-12 Pedro Alves <palves@redhat.com>
401
402 * amd64-darwin-tdep.c: Add (C) after Copyright.
403 * cli/cli-cmds.h: Ditto.
404 * cli/cli-decode.c: Ditto.
405 * cli/cli-decode.h: Ditto.
406 * cli/cli-dump.c: Ditto.
407 * cli/cli-dump.h: Ditto.
408 * cli/cli-interp.c: Ditto.
409 * cli/cli-logging.c: Ditto.
410 * cli/cli-script.c: Ditto.
411 * cli/cli-script.h: Ditto.
412 * cli/cli-setshow.c: Ditto.
413 * cli/cli-setshow.h: Ditto.
414 * cli/cli-utils.c: Ditto.
415 * cli/cli-utils.h: Ditto.
416 * config/alpha/nm-osf3.h: Ditto.
417 * config/djgpp/djconfig.sh: Ditto.
418 * config/i386/nm-fbsd.h: Ditto.
419 * config/i386/nm-i386gnu.h: Ditto.
420 * config/nm-linux.h: Ditto.
421 * config/nm-nto.h: Ditto.
422 * config/rs6000/nm-rs6000.h: Ditto.
423 * config/sparc/nm-sol2.h: Ditto.
424 * darwin-nat-info.c: Ditto.
425 * dfp.c: Ditto.
426 * dfp.h: Ditto.
427 * gdb-demangle.h: Ditto.
428 * i386-darwin-nat.c: Ditto.
429 * i386-darwin-tdep.c: Ditto.
430 * linux-fork.h: Ditto.
431 * m32c-tdep.c: Ditto.
432 * microblaze-linux-tdep.c: Ditto.
433 * microblaze-rom.c: Ditto.
434 * microblaze-tdep.c: Ditto.
435 * microblaze-tdep.h: Ditto.
436 * mips-linux-tdep.h: Ditto.
437 * ppc-ravenscar-thread.c: Ditto.
438 * ppc-ravenscar-thread.h: Ditto.
439 * prologue-value.c: Ditto.
440 * prologue-value.h: Ditto.
441 * ravenscar-thread.c: Ditto.
442 * ravenscar-thread.h: Ditto.
443 * sparc-ravenscar-thread.c: Ditto.
444 * sparc-ravenscar-thread.h: Ditto.
445 * tilegx-linux-tdep.c: Ditto.
446 * unwind_stop_reasons.def: Ditto.
447 * windows-nat.h: Ditto.
448 * xtensa-linux-tdep.c: Ditto.
449 * xtensa-xtregs.c: Ditto.
450 * regformats/regdat.sh: Ditto.
451 * regformats/regdef.h: Ditto.
452
453 2013-02-12 Pedro Alves <palves@redhat.com>
454
455 * break-catch-sig.c: Update copyright years.
456
457 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
458
459 Add support for a destructor for ui_out data and use it to
460 provide a ui_out destructor.
461 * ui-out.h: Declare the new ui_out destructor.
462 (ui_out_impl): Add a field for data destructor in ui_out_impl.
463 * ui-out.c (default_data_destroy): Add a default data destructor
464 which does nothing.
465 (default_ui_out_impl): Set the new data_destroy field to
466 default_data_destroy
467 (uo_data_destroy): Local function which invokes the data
468 destructor if present.
469 (clear_table): Local function which clears the table data of a
470 ui_out object.
471 (ui_out_destroy): Public function which frees a ui_out object.
472 (ui_out_table_end): Use the new clear_table function.
473 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
474 NULL.
475 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
476 to NULL.
477
478 2013-02-11 Doug Evans <dje@google.com>
479
480 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
481 (printf_decfloat): New function. Broken out from ui_printf.
482 Remove unnecessary code to shift the entire format string down.
483 (printf_pointer): New function.
484 (ui_printf): Code to print C strings, wide C strings, decfloats,
485 and pointers moved to separate functions.
486
487 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
488
489 * valops.c (value_assign): Handling bitfield offset in
490 `lval_internalvar_component' case.
491
492 2013-02-08 Doug Evans <dje@google.com>
493
494 * common/format.c (parse_format_string): Fix whitespace.
495
496 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
497
498 * stack.c (return_command): Work around uninitialized variable
499 warning.
500
501 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
502
503 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
504 number of the registers from 36 to 34.
505
506 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
507
508 * NEWS: Mention new AArch64 native and target support.
509
510 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
511
512 * MAINTAINERS (Write After Approval): Add myself.
513
514 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
515 Marcus Shawcroft <marcus.shawcroft@arm.com>
516 Nigel Stephens <nigel.stephens@arm.com>
517 Yufeng Zhang <yufeng.zhang@arm.com>
518
519 * aarch64-linux-nat.c: New file.
520 * config/aarch64/linux.mh: New file.
521 * configure.host: Add AArch64.
522 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
523
524 2013-02-07 Doug Evans <dje@google.com>
525
526 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
527 disassemble command.
528
529 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
530
531 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
532 set_gdbarch_fetch_tls_load_module_address.
533
534 2013-02-06 David S. Miller <davem@davemloft.net>
535
536 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
537 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
538 * value.c (struct_return_convention): New function.
539 (using_struct_return): Implement in terms of struct_return_convention.
540 * value.h (struct_return_convention): Declare.
541 * stack.c (return_command): Allow successful overriding of the return
542 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
543
544 2013-02-06 Tom Tromey <tromey@redhat.com>
545
546 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
547 outside of TRY_CATCH.
548
549 2013-02-06 Yao Qi <yao@codesourcery.com>
550
551 * mi/mi-interp.c: Include "tracepoint.h".
552 (mi_tsv_modified): Declare.
553 (mi_tsv_created, mi_tsv_deleted): Update declaration.
554 (mi_interpreter_init): Call observer_attach_tsv_modified.
555 (mi_tsv_modified): New.
556 (mi_tsv_created, mi_tsv_deleted): Update.
557 * tracepoint.c (trace_variable_command): Call
558 observer_notify_tsv_modified if the initial value of tsv is
559 changed.
560 (delete_trace_state_variable): Call
561 observer_notify_tsv_deleted earlier.
562 (trace_variable_command): Caller update.
563 (create_tsv_from_upload): Likewise.
564 * observer.sh: Declare "struct trace_state_variable".
565
566 * NEWS: Mention the new MI notification "=tsv-modified".
567
568 2013-02-05 Doug Evans <dje@google.com>
569
570 * completer.c (location_completer): Fix typo in comment.
571
572 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
573
574 * breakpoint.c (add_location_to_breakpoint): Insert the location with
575 ADDRESS sorted.
576
577 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
578
579 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
580 Refactor if statement to avoid trailing || operator.
581
582 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
583
584 * NEWS: Add PowerPC FreeBSD as a new native configuration.
585
586 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
587
588 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
589 * configure.host: Add powerpc*-*-freebsd* target.
590 * configure.tgt: Add target info for powerpc*-*-freebsd*.
591 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
592 * config/powerpc/fbsd.mh: New file.
593
594 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
595 Denys Vlasenko <dvlasenk@redhat.com>
596 Pedro Alves <palves@redhat.com>
597
598 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
599 (struct elf_internal_linux_prpsinfo): Forward declare.
600 * gdbarch.h, gdbarch.c: Regenerate.
601 * linux-tdep.c: Include `cli/cli-utils.h'.
602 (linux_fill_prpsinfo): New function.
603 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
604 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
605 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
606 depending on gdbarch pointer bitness.
607 * ppc-linux-tdep.c: Include elf-bfd.h.
608 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
609 on 32-bit.
610
611 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
612 Marcus Shawcroft <marcus.shawcroft@arm.com>
613 Nigel Stephens <nigel.stephens@arm.com>
614 Yufeng Zhang <yufeng.zhang@arm.com>
615
616 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
617
618 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
619 Marcus Shawcroft <marcus.shawcroft@arm.com>
620 Nigel Stephens <nigel.stephens@arm.com>
621 Yufeng Zhang <yufeng.zhang@arm.com>
622
623 * aarch64-newlib-tdep.c: New file.
624 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
625 aarch64*-*-elf.
626 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
627 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
628 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
629 * osabi.c (gdb_osabi_names): Add "Newlib".
630
631 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
632 Marcus Shawcroft <marcus.shawcroft@arm.com>
633 Nigel Stephens <nigel.stephens@arm.com>
634 Yufeng Zhang <yufeng.zhang@arm.com>
635
636 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
637 (ALLDEPFILES): Add aarch64-linux-tdep.c.
638 * aarch64-linux-tdep.c: New file.
639 * aarch64-linux-tdep.h: New file.
640 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
641 * configure.tgt: Add aarch64-none-linux-gnu.
642
643 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
644 Marcus Shawcroft <marcus.shawcroft@arm.com>
645 Nigel Stephens <nigel.stephens@arm.com>
646 Yufeng Zhang <yufeng.zhang@arm.com>
647
648 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
649 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
650 (ALLDEPFILES): Add aarch64-tdep.c.
651 * aarch64-tdep.c: New file.
652 * aarch64-tdep.h: New file.
653 * configure.tgt: Add AArch64.
654 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
655 (aarch64-expedite): New definition.
656 * features/aarch64-core.xml: New file.
657 * features/aarch64-fpu.xml: New file.
658 * features/aarch64-without-fpu.c: New file (generated).
659 * features/aarch64-without-fpu.xml: New file.
660 * features/aarch64.c: New file (generated).
661 * features/aarch64.xml: New file.
662 * regformats/aarch64-without-fpu.dat: New file (generated).
663 * regformats/aarch64.dat: New file (generated).
664
665 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
666
667 * contrib/expect-read1.c: New file.
668 * contrib/expect-read1.sh: New file.
669
670 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
671
672 * dwarf2read.c (file_file_name): New function with code from
673 file_full_name.
674 (file_full_name): Move most of the code to file_file_name.
675 (macro_start_file): Rename variable full_name to file_name and use
676 file_file_name for it. Add comp_dir parameter to new_macro_table.
677 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
678 macro_source_file->filename access by macro_source_fullname call.
679 * macroscope.c (_initialize_macroscope): Update the new_macro_table
680 caller.
681 * macrotab.c (struct macro_table): New field comp_dir.
682 (macro_include): New variables link_fullname and source_fullname.
683 Replace any macro_source_file->filename access by macro_source_fullname
684 call.
685 (macro_lookup_inclusion): Remove the partial filenames checking code.
686 (check_for_redefinition): New variables source_fullname and
687 found_key_fullname. Replace any macro_source_file->filename access by
688 macro_source_fullname call.
689 (macro_undef): New variables source_fullname and key_fullname. Replace
690 any macro_source_file->filename access by macro_source_fullname call.
691 (macro_lookup_definition): New variables retval and source_fullname.
692 Replace any macro_source_file->filename access by macro_source_fullname
693 call.
694 (foreach_macro): New variable key_fullname. Replace any
695 macro_source_file->filename access by macro_source_fullname call.
696 (foreach_macro_in_scope): New variable datum_fullname. Replace any
697 macro_source_file->filename access by macro_source_fullname call.
698 (new_macro_table): Add parameter comp_dir. Initialize T with it.
699 (macro_source_fullname): New function.
700 * macrotab.h (struct macro_source_file): Extent the filename field
701 comment.
702 (new_macro_table): New parameter comp_dir, add a comment for it.
703 (macro_source_fullname): new declaration.
704
705 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
706
707 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
708 this_real_name to outer block. Use it also for
709 compare_filenames_for_search.
710 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
711 with dw2_get_real_path for file_matcher, considering also
712 BASENAMES_MAY_DIFFER.
713 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
714
715 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
716
717 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
718 to the file_matcher parameter. Pass 0 to it.
719 (dwarf2_create_include_psymtab): Copy also DIRNAME.
720 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
721 NULL psymtab_to_fullname result.
722 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
723 an expected filename instead.
724 (expand_symtabs_matching_via_partial): Add basenames parameter to the
725 file_matcher parameter. Call also psymtab_to_fullname, after newly
726 considering BASENAMES_MAY_DIFFER.
727 * source.c (rewrite_source_path): Remove static.
728 * source.h (rewrite_source_path): New declaration.
729 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
730 the expand_symtabs_matching field. Comment it.
731 * symtab.c (file_matches): New function comment. Add parameter
732 basenames, implement it.
733 (search_symbols_file_matches): Add basenames parameter. Update the
734 file_matches caller.
735 (search_symbols): Match FILES also against symtab_to_fullname.
736 Optimize it for BASENAMES_MAY_DIFFER.
737
738 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
739
740 * source.c (print_source_lines_base): Print for TUI also "fullname".
741 * tui/tui-data.c (init_content_element): Change tui_locator_element
742 field to full_name.
743 * tui/tui-data.h (struct tui_locator_element): Likewise.
744 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
745 tui_update_locator_filename calls to tui_update_locator_fullname.
746 Replace symtab->filename refererence by symtab_to_fullname call.
747 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
748 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
749 field to full_name. Replace symtab->filename refererence by
750 symtab_to_fullname call.
751 (tui_show_symtab_source): Rename parameter to fullname. Change
752 tui_locator_element field to full_name.
753 * tui/tui-stack.c: Include source.h.
754 (tui_set_locator_filename): Rename the declaration to ...
755 (tui_set_locator_fullname): ... here. Rename its parameter to
756 fullname, updates its comment.
757 (tui_set_locator_info): Rename its parameter to fullname.
758 (tui_set_locator_filename): Rename the definition to ...
759 (tui_set_locator_fullname): ... here. Rename its parameter to
760 fullname, updates its comment. Change tui_locator_element field to
761 full_name.
762 (tui_set_locator_info): Rename its parameter to fullname.
763 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
764 (tui_update_locator_filename): Rename to ...
765 (tui_update_locator_fullname): ... here. Rename callee to
766 tui_set_locator_fullname.
767 (tui_show_frame_info): Replace symtab->filename refererence by
768 symtab_to_fullname call.
769 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
770 (tui_update_locator_fullname): ... here.
771 * tui/tui-winsource.c (tui_display_main): Rename the callee to
772 tui_update_locator_fullname. Replace symtab->filename refererence by
773 symtab_to_fullname call.
774 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
775 Rename the callee to tui_update_locator_fullname.
776 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
777
778 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
779
780 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
781 by symtab_to_filename_for_display calls.
782 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
783 (clear_command): New variable sal_fullname, initialize it. Replace
784 compare_filenames_for_search by filename_cmp with sal_fullname.
785 (say_where, update_static_tracepoint): Replace symtab->filename
786 refererences by symtab_to_filename_for_display calls.
787 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
788 Likewise.
789 * dwarf2read.c: Include source.h.
790 (fixup_go_packaging): Replace symtab->filename refererences by
791 symtab_to_filename_for_display calls.
792 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
793 Replace symtab->filename refererences by symtab_to_filename_for_display
794 calls.
795 (create_sals_line_offset, convert_linespec_to_sals): New variable
796 fullname, initialize it, replace symtab->filename reference by the
797 variable.
798 * linux-fork.c: Include source.h.
799 (info_checkpoints_command): Replace symtab->filename refererences by
800 symtab_to_filename_for_display calls.
801 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
802 by symtab_to_filename_for_display calls.
803 * mdebugread.c: Include source.h.
804 (psymtab_to_symtab_1): Replace symtab->filename refererences by
805 symtab_to_filename_for_display calls.
806 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
807 (mi_cmd_file_list_exec_source_files): Likewise.
808 * printcmd.c: Include source.h.
809 (build_address_symbolic): Replace symtab->filename refererences by
810 symtab_to_filename_for_display calls.
811 * psymtab.c (partial_map_symtabs_matching_filename)
812 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
813 with psymtab_to_fullname.
814 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
815 by symtab_to_filename_for_display calls.
816 (stpy_get_filename): New variable filename, initialize it, use instead
817 of symtab->filename refererences.
818 (salpy_str): Make variable filename const char *. Replace
819 symtab->filename refererences by symtab_to_filename_for_display calls.
820 * skip.c: Include source.h and filenames.h.
821 (skip_file_command): Remove const from the symtab variable. Replace
822 symtab->filename refererences by symtab_to_fullname call.
823 (function_name_is_marked_for_skip): New variables searched_for_fullname
824 and fullname. Use them to search also with symtab's fullname.
825 * source.c (find_source_lines): Replace symtab->filename refererences
826 by symtab_to_filename_for_display calls.
827 (print_source_lines_base): New variable filename, use it instead of
828 symtab->filename. Replace symtab->filename refererences by
829 symtab_to_filename_for_display calls.
830 (line_info, forward_search_command): Replace symtab->filename
831 refererences by symtab_to_filename_for_display calls.
832 (reverse_search_command): Replace symtab->filename refererences by
833 symtab_to_filename_for_display calls. New variable filename for it.
834 * stack.c (frame_info): Likewise.
835 * symmisc.c: Include source.h.
836 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
837 (maintenance_info_symtabs): Replace symtab->filename refererences by
838 symtab_to_filename_for_display calls.
839 * symtab.c (iterate_over_some_symtabs): Call
840 compare_filenames_for_search also with symtab_to_fullname.
841 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
842 symtab->filename refererences by symtab_to_filename_for_display calls.
843 (find_line_symtab): Replace symtab->filename refererences by
844 symtab_to_filename_for_display calls.
845 (file_matches): Replace filename_cmp by compare_filenames_for_search.
846 (print_symbol_info): Make the last parameter const char *. New
847 variable s_filename. Use it in the function.
848 (symtab_symbol_info): Make the last_filename variable const char *.
849 Replace symtab->filename refererences by symtab_to_filename_for_display
850 calls.
851 (rbreak_command): New variable fullname. Use it. Replace
852 symtab->filename refererence by symtab_to_filename_for_display call.
853 * tracepoint.c (set_traceframe_context, trace_find_line_command)
854 (print_one_static_tracepoint_marker): Replace symtab->filename
855 refererences by symtab_to_filename_for_display calls.
856 * tui/tui-source.c (tui_set_source_content): New variables filename and
857 s_filename. Replace symtab->filename refererences by this variable.
858 Replace other symtab->filename refererences by
859 symtab_to_filename_for_display calls.
860
861 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
862 Jan Kratochvil <jan.kratochvil@redhat.com>
863
864 Add a new variable that controls a way in which filenames are
865 displayed.
866 * NEWS (set filename-display): New entry.
867 * source.c (filename_display_basename, filename_display_relative)
868 (filename_display_absolute, filename_display_kind_names)
869 (filename_display_string, show_filename_display_string)
870 (symtab_to_filename_for_display): New.
871 (_initialize_source): Added initialization of 'filename-display'
872 variable.
873 * source.h (symtab_to_filename_for_display): Added declaration.
874 * stack.c (print_frame): Added new variable and calling of a new
875 function and condition with this variable. Changed third argument of
876 calling of a function.
877
878 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
879
880 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
881 Rename field reference filename to fullname.
882 * tui/tui-data.h (struct tui_source_info): Rename field filename to
883 fullname. New comment for it.
884 * tui/tui-source.c (tui_set_source_content): Rename field reference
885 filename to fullname. Initialize field by symtab_to_fullname now.
886 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
887 reference filename to fullname. Use symtab_to_fullname during
888 comparison.
889
890 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
891
892 Code cleanup.
893 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
894 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
895 filename to fullname. Rename variable this_name to this_fullname.
896 Lowercase FILENAME_CMP call.
897 (dw2_find_symbol_file): New comment for the returned string.
898 (dwarf2_gdb_index_functions): Rename the function to
899 dw2_expand_symtabs_with_fullname.
900 * psymtab.c (read_psymtabs_with_filename): Rename to ...
901 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
902 fullname.
903 (psym_functions): Rename the function to read_psymtabs_with_fullname.
904 * symfile.h (struct quick_symbol_functions): Rename field
905 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
906 parameter filename to fullname. Document returned string meaning for
907 find_symbol_file.
908 * symtab.c (find_line_symtab): Rename the called function to
909 expand_symtabs_with_fullname.
910
911 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
912
913 Code cleanup.
914 * breakpoint.c (clear_command): Remove variable is_abs, unify the
915 call of filename_cmp with compare_filenames_for_search.
916 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
917 is_abs, unify the call of FILENAME_CMP with
918 compare_filenames_for_search. New gdb_asserts for real_path and name.
919 Unify the call of compare_filenames_for_search with FILENAME_CMP.
920 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
921 * symfile.h (struct quick_symbol_functions): Extend the comment for
922 map_symtabs_matching_filename.
923 * symtab.c (compare_filenames_for_search): Remove the function comment
924 relative path requirement. Handle absolute filenames, with a comment.
925 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
926 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
927 real_path and name. Unify the call of compare_filenames_for_search
928 with FILENAME_CMP.
929 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
930
931 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
932
933 Code cleanup.
934 * breakpoint.c (print_breakpoint_location): Replace bp_location field
935 source_file references by symtab field references. Remove variables
936 sal and fullname.
937 (momentary_breakpoint_from_master, add_location_to_breakpoint):
938 (clear_command, say_where): Replace bp_location field source_file
939 references by symtab field references.
940 (bp_location_dtor): Remove the source_file reference.
941 (update_static_tracepoint): Replace bp_location field source_file
942 references by symtab field references.
943 (breakpoint_free_objfile): New function.
944 * breakpoint.h (struct bp_location): Extend the comment for line_number.
945 Replace the field source_file by field symtab, extend its comment.
946 (breakpoint_free_objfile): New declaration.
947 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
948 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
949 field source_file references by symtab field references.
950
951 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
952
953 Replace xfullpath calls by gdb_realpath calls.
954 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
955 function comment.
956 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
957 Remove it from the iterate_over_some_symtabs call.
958 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
959 Remove it from the dw2_map_expand_apply calls, remove a block handling
960 it.
961 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
962 Remove it from the iterate_over_some_symtabs call.
963 (partial_map_symtabs_matching_filename): Remove parameter full_path.
964 Remove it from the partial_map_expand_apply calls, remove a block
965 handling it. Drop gdb_realpath call and cleanups from the real_path
966 handling.
967 * source.c (openp): Drop the comment part about xfullpath. Replace
968 xfullpath calls by gdb_realpath calls.
969 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
970 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
971 from method map_symtabs_matching_filename and its comment.
972 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
973 gdb_realpath call.
974 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
975 remove it also from the function comment, remove a block handling it.
976 Drop gdb_realpath call and cleanups from the real_path handling.
977 (iterate_over_symtabs): Drop variable full_path and its use.
978 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
979 * utils.c (xfullpath): Remove.
980 * utils.h (xfullpath): Remove.
981
982 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
983
984 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
985 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
986 (ALLDEPFILES): Add ppc64-tdep.c.
987 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
988 ppc64-tdep.o to gdb_target_obs.
989 * ppc64-tdep.h: New file.
990 * ppc64-tdep.c: New file.
991 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
992 ppc-linux-tdep.c to here.
993 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
994 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
995 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
996 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
997 from ppc-linux-tdep.c to here.
998 (ppc64_convert_from_func_ptr_addr): Rename from
999 ppc64_linux_convert_from_func_ptr_addr to
1000 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
1001 here.
1002 * rs6000-tdep.c:
1003 (read_insn): Move from ppc-linux-tdep.c to here.
1004 (insns_match_pattern, insn_d_field, insn_ds_field): Move
1005 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
1006 * ppc-linux-tdep.c: Include ppc64-tdep.h.
1007 Removed above functions.
1008 (ppc_linux_init_abi): Adjust.
1009
1010 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1011
1012 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
1013
1014 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1015
1016 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
1017
1018 2013-02-01 Pedro Alves <palves@redhat.com>
1019
1020 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
1021 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
1022
1023 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1024
1025 * elfread.c (elf_symfile_read): Limit separate debug info additions to
1026 files with no separate debug info.
1027 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1028 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1029 only for files with no separate debug info.
1030
1031 2013-01-31 Tom Tromey <tromey@redhat.com>
1032
1033 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1034 change type.
1035 (struct jit_program_space_data): Rename from jit_inferior_data.
1036 Update comments.
1037 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1038 Change return type. Attach data to program space.
1039 (jit_program_space_data_cleanup): Rename from
1040 jit_inferior_data_cleanup; change argument type.
1041 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1042 change type.
1043 (jit_register_code): Update.
1044 (jit_update_inferior_cache): Remove.
1045 (jit_breakpoint_deleted): Get jit data from the location's program
1046 space.
1047 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1048 'ps_data', change type.
1049 (jit_inferior_init, jit_breakpoint_re_set_internal)
1050 (jit_event_handler): Update.
1051 (free_objfile_data): Get data from objfile's program space.
1052 (_initialize_jit): Update.
1053
1054 2013-01-31 Tom Tromey <tromey@redhat.com>
1055
1056 PR gdb/13987:
1057 * jit.c (struct jit_inferior_data) <cached_code_address,
1058 jit_breakpoint>: New fields.
1059 (jit_breakpoint_re_set_internal): Fix logging. Only create
1060 breakpoint if cached address has changed.
1061 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1062 functions.
1063 (_initialize_jit): Register breakpoint deleted observer.
1064
1065 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1066
1067 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1068 (save_infcall_suspend_state): Ifdef out unused inf.
1069 (restore_infcall_suspend_state): Ifdef out unused inf.
1070 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1071 (jit_frame_sniffer): Remove unused inf_data.
1072
1073 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1074
1075 * c-exp.y (classify_inner_name): Remove unused type.
1076 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1077 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1078 need_escape.
1079 (c_get_string): Remove unused kind.
1080 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1081
1082 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1083
1084 * charset.c (intermediate_encoding): Remove unused i.
1085 * completer.c (signal_completer): Remove unused i.
1086 * continuations.c (discard_my_continuations_1): Remove unused
1087 continuation_ptr.
1088 * corelow.c (core_close): Remove unuseD name.
1089 (get_core_siginfo): Remove unused pid.
1090 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1091 i, cps.
1092 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1093 (loclist_describe_location): Remove unused first.
1094 * event-top.c (command_line_handler): Remove unused got_eof.
1095 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1096 (resize_section_table): Remove unused old_value.
1097 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1098 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1099 * i386-tdep.c (i386_process_record): Remove unused rex.
1100 * infcmd.c (get_return_value): Remove unused uiout.
1101 * jv-lang.c (type_from_class): Remove unused is_array.
1102 * jv-valprint.c (java_val_print): Remove unused i.
1103 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1104 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1105 * m2-typeprint.c (m2_print_type): Remove unused code.
1106 * macroexp.c (get_character_constant): Remove unused body_start.
1107 (macro_stringify): Remove unused result.
1108 * objc-lang.c (find_methods): Remove unused gdbarch.
1109 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1110 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1111 * stack.c (print_frame_args): Remove unused summary.
1112 * thread.c (thread_apply_command): Remove unused p.
1113 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1114 * valops.c (search_struct_method): Remove unused skip.
1115 * valprint.c (generic_val_print): Remove unused byte_order.
1116 * varobj.c (varobj_update): Remove unused changed.
1117 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1118 (alias_command): Remove unused c.
1119 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1120 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1121 format.
1122 (mi_cmd_data_write_memory): Remove unused word_format.
1123 (mi_cmd_data_write_memory_bytes): Remove unused r.
1124 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1125 p_start, p_end.
1126 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1127 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1128 line_width.
1129
1130 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1131
1132 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1133 * symtab.c (iterate_over_symtabs): Remove unused s.
1134 (find_pc_sect_symtab): Remove unused pspAce.
1135 (find_pc_sect_line): Remove unused alt_symtab.
1136 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1137 (completion_list_add_name): Remove unused newsize.
1138
1139 2013-01-31 Tom Tromey <tromey@redhat.com>
1140
1141 PR c++/14998:
1142 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1143 TYPE_CODE_FUNC.
1144
1145 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1146
1147 * target.c (target_read_string): Remove unused origlen.
1148
1149 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1150
1151 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1152 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1153 * ax-general.c (ax_print): Remove unused is_float.
1154 * blockframe.c (block_innermost_frame): Remove unused start, end.
1155 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1156
1157 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1158
1159 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1160 (svr4_read_so_list): Remove unused lmo.
1161 * solib-target.c (solib_target_relocate_section_addresses): Remove
1162 unused flags.
1163
1164 2013-01-30 Tom Tromey <tromey@redhat.com>
1165
1166 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1167
1168 2013-01-30 Tom Tromey <tromey@redhat.com>
1169
1170 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1171 * utils.c (gnu_debuglink_crc32): Remove.
1172 * utils.h (gnu_debuglink_crc32): Don't declare.
1173
1174 2013-01-30 Tom Tromey <tromey@redhat.com>
1175
1176 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1177 (read_structure_type, read_enumeration_type): Remove cast.
1178
1179 2013-01-30 Tom Tromey <tromey@redhat.com>
1180
1181 * dwarf2read.c (read_namespace_type): Remove cast.
1182 (read_typedef): Likewise.
1183
1184 2013-01-29 Tom Tromey <tromey@redhat.com>
1185
1186 * dwarf2read.c (free_dwo_file): Remove assert.
1187
1188 2013-01-29 Tom Tromey <tromey@redhat.com>
1189
1190 * value.c (deprecated_set_value_modifiable): Remove.
1191 * value.h (deprecated_set_value_modifiable): Remove.
1192
1193 2013-01-28 Doug Evans <dje@google.com>
1194
1195 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1196 to addresses from dwo files.
1197
1198 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1199
1200 * valops.c (find_overload_match): Remove unused argument 'lax'.
1201 * value.h: Remove unused argument 'lax' from the declaration of
1202 find_overload_match.
1203 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1204 to find_overload_match.
1205 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1206 argument to find_overload_match.
1207
1208 2013-01-25 Tom Tromey <tromey@redhat.com>
1209
1210 * dwarf2read.c (processing_has_namespace_info): Remove.
1211 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1212 (process_die, read_func_scope, dwarf2_start_symtab)
1213 (new_symbol_full): Update.
1214
1215 2013-01-25 Tom Tromey <tromey@redhat.com>
1216
1217 * cp-namespace.c (cp_set_block_scope): Remove.
1218 * cp-support.h (cp_set_block_scope): Remove.
1219 * dbxread.c: Include block.h.
1220 (cp_set_block_scope): New function.
1221 (process_one_symbol): Update.
1222 * dwarf2read.c (read_func_scope): Use block_set_scope.
1223
1224 2013-01-25 Pedro Alves <palves@redhat.com>
1225
1226 * remote.c (add_current_inferior_and_thread): Tweak comment.
1227
1228 2013-01-25 Tom Tromey <tromey@redhat.com>
1229
1230 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1231 (cp_add_using_directive): Add 'copy_names' argument.
1232 * cp-support.h (cp_add_using_directive): Update.
1233 (struct using_direct) <import_src, import_dest, alias,
1234 declaration>: Now const.
1235 * dwarf2read.c (read_import_statement): Use obconcat.
1236 Don't copy names passed to cp_add_using_directive.
1237
1238 2013-01-25 Tom Tromey <tromey@redhat.com>
1239
1240 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1241
1242 2013-01-25 Pedro Alves <palves@redhat.com>
1243
1244 * remote.c (stop_reply_extract_thread): New.
1245 (add_current_inferior_and_thread): New parameter 'wait_status'.
1246 Handle it.
1247 (remote_start_remote): Pass wait status to
1248 add_current_inferior_and_thread.
1249 (extended_remote_run): Update comment.
1250 (extended_remote_create_inferior_1): Pass wait status to
1251 add_current_inferior_and_thread.
1252
1253 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1254 Ulrich Weigand <uweigand@de.ibm.com>
1255
1256 * valarith.c (value_vector_widen): New function for replicating a
1257 scalar into a vector.
1258 (value_binop): Use value_vector_widen to widen scalar to vector
1259 rather than casting, this better matches gcc C behaviour.
1260 * valops.c (value_casst): Update logic for casting between vector
1261 types, and for casting from scalar to vector, try to match gcc C
1262 behaviour.
1263 * value.h (value_vector_widen): Declare.
1264 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1265 function, handle special case for casting scalar to vector.
1266 (opencl_relop): Use opencl_value_cast.
1267 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1268 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1269 in order to use opencl_value_cast.
1270
1271 2013-01-25 Yao Qi <yao@codesourcery.com>
1272
1273 * event-loop.c: Include "queue.h".
1274 (gdb_event_p): New typedef.
1275 (DECLARE_QUEUE_P): Use.
1276 (DEFINE_QUEUE_P): Use.
1277 (async_queue_event): Remove.
1278 (gdb_event_xfree): New.
1279 (initialize_event_loop): New.
1280 (process_event): Use QUEUE macros.
1281 (event_queue): Remove.
1282 (gdb_wait_for_event): Caller update.
1283 (check_async_event_handlers): Likewise.
1284 (poll_timers): Likewise.
1285 * event-loop.h (initialize_event_loop): Declare.
1286 * event-loop.c (gdb_event_xfree): New.
1287 * top.c (gdb_init): Call initialize_event_loop.
1288
1289 2013-01-25 Yao Qi <yao@codesourcery.com>
1290
1291 * event-loop.c (async_queue_event): Remove one parameter
1292 'position'. Remove code handling 'position' == TAIL.
1293 (gdb_wait_for_event): Caller update.
1294 (check_async_event_handlers): Caller update.
1295 (poll_timers): Caller update.
1296 * event-loop.h (enum queue_position): Remove.
1297
1298 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1299
1300 * MAINTAINERS: Update my email.
1301
1302 2013-01-25 Yao Qi <yao@codesourcery.com>
1303
1304 * main.c (print_gdb_help): Remove "--epoch" from the help
1305 message.
1306
1307 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1308
1309 * symtab.c (skip_prologue_using_sal): Consider a file
1310 change the same as an increased line number
1311
1312 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1313
1314 * MAINTAINERS (Write After Approval): Add myself to the list.
1315
1316 2013-01-24 Tom Tromey <tromey@redhat.com>
1317
1318 * ada-lang.h (ada_decode_symbol): Make return type const.
1319 * ada-lang.c (ada_decode_symbol): Likewise.
1320
1321 2013-01-23 Doug Evans <dje@google.com>
1322
1323 * linespec.c (find_linespec_symbols): Make static.
1324
1325 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1326
1327 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1328 type on float conversion for complex type.
1329
1330 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1331
1332 Add a new class gdb.Architecture which exposes GDB's
1333 internal representation of architecture via GDB Python API.
1334 * Makefile.in: Add entries corresponding to the new file
1335 python/py-arch.c.
1336 * NEWS (Python Scripting): Add entries for the new class
1337 gdb.Architecture and the new method gdb.Frame.architecture.
1338 * python/py-arch.c: Implement gdb.Architecture class.
1339 * python/py-frame.c (frapy_arch): Implement the method
1340 gdb.Frame.architecture().
1341 (frame_object_methods): Add 'architecture' to the method table.
1342 * python/python-internal.h: Add declarations of new utility
1343 functions.
1344 * python/python.c (_initialize_python): Initialize
1345 gdb.Architecture class.
1346
1347 2013-01-23 Doug Evans <dje@google.com>
1348
1349 Work around binutils/15021.
1350 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1351 type_unit_group out of union s. All uses updated.
1352 (read_index_from_section): Watch for index version 8.
1353 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1354 an imported symtab.
1355 (write_psymtabs_to_index): Increment version number to 8.
1356
1357 2013-01-22 Pedro Alves <palves@redhat.com>
1358
1359 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1360 user-visible.
1361
1362 2013-01-22 Pedro Alves <palves@redhat.com>
1363
1364 * annotate.c (annotate_breakpoints_changed): Rename to ...
1365 (annotate_breakpoints_invalid): ... this. Make static.
1366 (breakpoint_changed): Adjust.
1367 (_initialize_annotate): Always install the observers. Install a
1368 "breakpoint_created" observer.
1369 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1370 * breakpoint.c (set_breakpoint_condition)
1371 (breakpoint_set_commands, do_map_commands_command)
1372 (init_raw_breakpoint, clear_command, set_ignore_count)
1373 (enable_breakpoint_disp): No longer call
1374 annotate_breakpoints_changed.
1375
1376 2013-01-22 Pedro Alves <palves@redhat.com>
1377
1378 * annotate.c: Include "inferior.h".
1379 (frames_invalid_emitted)
1380 (breakpoints_invalid_emitted): New globals.
1381 (async_background_execution_p): New function.
1382 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1383 emitting the annotation if it has already been emitted.
1384 (annotate_display_prompt): New function.
1385 * annotate.h (annotate_display_prompt): New declaration.
1386 * event-top.c: Include annotate.h.
1387 (display_gdb_prompt): Call annotate_display_prompt.
1388
1389 2013-01-22 Pedro Alves <palves@redhat.com>
1390
1391 * annotate.c (ignore_count_changed): Delete.
1392 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1393 (annotate_ignore_count_change): Delete.
1394 (annotate_stopped): Don't emit a delayed breakpoints-changed
1395 annotation.
1396 * annotate.h (annotate_ignore_count_change): Delete.
1397 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1398 annotate_ignore_count_change.
1399
1400 2013-01-22 Tom Tromey <tromey@redhat.com>
1401
1402 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1403 require_rvalue for a register location.
1404
1405 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1406
1407 * breakpoint.c (print_one_breakpoint_location): Add MI
1408 field 'thread-groups' when printing a breakpoint.
1409 (output_thread_groups): New function.
1410
1411 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1412
1413 * python/lib/gdb/commands/explore.py
1414 (CompoundExplorer.explore_expr): Correct the name of a method
1415 being invoked.
1416 (ExploreTypeCommand.invoke): Add a missing 'return'.
1417
1418 2013-01-21 Tom Tromey <tromey@redhat.com>
1419
1420 * gdb_obstack.h (obconcat): Move declaration here, from...
1421 * symfile.h (obconcat): ... here.
1422 * gdb_obstack.c: New file.
1423 (obconcat): Move from...
1424 * symfile.c (obconcat): ... here.
1425 * Makefile.in (SFILES): Add gdb_obstack.c.
1426 (COMMON_OBS): Add gdb_obstack.o.
1427
1428 2013-01-21 Tom Tromey <tromey@redhat.com>
1429
1430 * symfile.h (obsavestring): Don't declare.
1431 * symfile.c (obsavestring): Remove.
1432 * ada-exp.y: Use obstack_copy0, not obsavestring.
1433 * ada-lang.c: Use obstack_copy0, not obsavestring.
1434 * coffread.c: Use obstack_copy0, not obsavestring.
1435 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1436 * dbxread.c: Use obstack_copy0, not obsavestring.
1437 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1438 * jit.c: Use obstack_copy0, not obsavestring.
1439 * mdebugread.c: Use obstack_copy0, not obsavestring.
1440 * psymtab.c: Use obstack_copy0, not obsavestring.
1441 * stabsread.c: Use obstack_copy0, not obsavestring.
1442 * xcoffread.c: Use obstack_copy0, not obsavestring.
1443
1444 2013-01-21 Tom Tromey <tromey@redhat.com>
1445
1446 * dwarf2read.c (fixup_go_packaging): Save package name
1447 on objfile obstack.
1448 * gdbtypes.c (init_type): Don't copy name.
1449
1450 2013-01-21 Tom Tromey <tromey@redhat.com>
1451
1452 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1453 const.
1454 (struct attribute) <u.str>: Now const.
1455 (struct fnfieldlist) <name>: Now const.
1456 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1457 (partial_die_parent_scope): Make return type const.
1458 (partial_die_full_name, add_partial_symbol): Update.
1459 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1460 'name' const.
1461 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1462 (read_file_scope, read_func_scope, dwarf2_add_field)
1463 (dwarf2_add_member_fn, read_structure_type)
1464 (process_enumeration_scope, read_array_type, read_module_type)
1465 (read_base_type, read_subrange_type): Update.
1466 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1467 (new_symbol_full, guess_full_die_structure_name): Update.
1468 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1469 (dwarf2_name): Return const type.
1470 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1471 const.
1472
1473 2013-01-21 Tom Tromey <tromey@redhat.com>
1474
1475 * gdbtypes.c (init_type): Make 'name' const.
1476 * gdbtypes.h (init_type): Update.
1477
1478 2013-01-21 Tom Tromey <tromey@redhat.com>
1479
1480 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1481 (start_symtab): Make 'name' and 'dirname' const. Use
1482 set_last_source_file.
1483 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1484 (last_source_file): Define. Now static.
1485 (set_last_source_file, get_last_source_file): New functions.
1486 * buildsym.h (last_source_file): Don't declare.
1487 (start_symtab): Update.
1488 (set_last_source_file, get_last_source_file): Declare.
1489 * coffread.c (complete_symtab): Use set_last_source_file.
1490 (coff_end_symtab): Likewise.
1491 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1492 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1493 set_last_source_file.
1494 (process_one_symbol): Use get_last_source_file.
1495 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1496 (psymtab_to_symtab_1): Use get_last_source_file.
1497 * xcoffread.c (process_linenos): Use get_last_source_file.
1498 (complete_symtab): Use set_last_source_file.
1499 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1500 (scan_xcoff_symtab): Use set_last_source_file.
1501
1502 2013-01-21 Tom Tromey <tromey@redhat.com>
1503
1504 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1505 (symbol_set_names): Remove casts. Handle field const-ness.
1506
1507 2013-01-21 Tom Tromey <tromey@redhat.com>
1508
1509 * dwarf2read.c (new_symbol_full): Remove cast.
1510 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1511 * symtab.h (symbol_set_demangled_name): Update.
1512
1513 2013-01-21 Tom Tromey <tromey@redhat.com>
1514
1515 * main.c (captured_main): Call bfd_init.
1516
1517 2013-01-21 Tom Tromey <tromey@redhat.com>
1518
1519 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1520 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1521 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1522 * NEWS: Update.
1523
1524 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1525
1526 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1527
1528 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1529
1530 Fix gdb.fortran/common-block.exp crash in PIE mode.
1531 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1532 LOC_COMMON_BLOCK.
1533 * f-valprint.c (info_common_command_for_block): Expect
1534 LOC_COMMON_BLOCK in gdb_assert.
1535 * symtab.h (struct general_symbol_info): Update comment for the
1536 common_block member.
1537 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1538 (enum address_class): New member LOC_COMMON_BLOCK.
1539
1540 2013-01-18 David Blaikie <dblaikie@gmail.com>
1541
1542 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1543
1544 2013-01-18 Tom Tromey <tromey@redhat.com>
1545
1546 PR c++/14999:
1547 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1548 Call require_rvalue.
1549
1550 2013-01-18 Yao Qi <yao@codesourcery.com>
1551
1552 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1553 (dbx_read_symtab): New declaration.
1554 (dbx_psymtab_to_symtab): Delete.
1555 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1556 Rename parameter PST to SELF. Exchanged two parameters.
1557 (start_psymtab): Caller update.
1558 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1559 (dwarf2_read_symtab): New declaration.
1560 (dwarf2_psymtab_to_symtab): Delete.
1561 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1562 Rename parameter PST to SELF. Exchanged two parameters.
1563 (create_partial_symtab): Caller update.
1564 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1565 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1566 Rename parameter PST to SELF. Exchanged two parameters.
1567 (parse_partial_symbols, new_psymtab): Caller update.
1568 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1569 two parameters.
1570 * psymtab.c (psymtab_to_symtab): Caller update.
1571 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1572 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1573 Rename parameter PST to SELF. Exchanged two parameters.
1574 (xcoff_start_psymtab): Caller update.
1575
1576 2013-01-18 Yao Qi <yao@codesourcery.com>
1577
1578 * infrun.c (proceed): Rename local variable 'oneproc' to
1579 'force_step'.
1580
1581 2013-01-17 Doug Evans <dje@google.com>
1582
1583 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1584 (dw2_build_type_unit_groups): Delete. All uses updated.
1585
1586 * symtab.h (struct symbol_search): Add comment.
1587
1588 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1589
1590 * symtab.c (compare_filenames_for_search): New comment for
1591 HAS_DRIVE_SPEC.
1592
1593 2013-01-17 Tom Tromey <tromey@redhat.com>
1594
1595 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1596
1597 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1598
1599 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1600 initialize it by existing make_cleanup. Call new do_cleanups.
1601
1602 2013-01-17 Tom Tromey <tromey@redhat.com>
1603
1604 * cp-abi.c (cp_abi_completer): New function.
1605 (_initialize_cp_abi): Set completer for "set cp-abi".
1606
1607 2013-01-17 Tom Tromey <tromey@redhat.com>
1608
1609 * mem-break.c: Remove obsolete comment.
1610 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1611
1612 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1613
1614 * jit.c (jit_reader_load_command): Interpret the jit reader name
1615 as an absolute path if it begins with a forward slash.
1616
1617 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1618
1619 PR gdb/14550
1620
1621 * jit.c (finalize_symtab): Ensure that only the global block has a
1622 NULL superblock.
1623
1624 2013-01-17 Pedro Alves <palves@redhat.com>
1625
1626 * acinclude.m4: Include ../config/plugins.m4,
1627 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1628 * Makefile.in (aclocal_m4_deps): Update.
1629 * aclocal.m4: Renegerate.
1630
1631 2013-01-16 Doug Evans <dje@google.com>
1632
1633 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1634
1635 2013-01-16 Pedro Alves <palves@redhat.com>
1636 Tom Tromey <tromey@redhat.com>
1637
1638 PR cli/7221:
1639 * NEWS: Add "catch signal".
1640 * breakpoint.c (base_breakpoint_ops): No longer static.
1641 (bpstat_explains_signal): New function.
1642 (init_catchpoint): No longer static.
1643 (base_breakpoint_explains_signal): New function.
1644 (base_breakpoint_ops): Initialize new field.
1645 * breakpoint.h (enum bpstat_signal_value): New.
1646 (struct breakpoint_ops) <explains_signal>: New field.
1647 (bpstat_explains_signal): Remove macro, declare as function.
1648 (base_breakpoint_ops, init_catchpoint): Declare.
1649 * break-catch-sig.c: New file.
1650 * inferior.h (signal_catch_update): Declare.
1651 * infrun.c (signal_catch): New global.
1652 (handle_syscall_event): Update for change to
1653 bpstat_explains_signal.
1654 (handle_inferior_event): Likewise. Always handle random signals
1655 via bpstats.
1656 (signal_cache_update): Check signal_catch.
1657 (signal_catch_update): New function.
1658 (_initialize_infrun): Initialize signal_catch.
1659 * Makefile.in (SFILES): Add break-catch-sig.c.
1660 (COMMON_OBS): Add break-catch-sig.o.
1661
1662 2013-01-16 Tom Tromey <tromey@redhat.com>
1663
1664 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1665 (print_one_catch_solib, print_one_catch_syscall)
1666 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1667 "catch-type".
1668
1669 2013-01-16 Yao Qi <yao@codesourcery.com>
1670
1671 * printcmd.c (current_display_number): Make it static.
1672
1673 2013-01-16 Yao Qi <yao@codesourcery.com>
1674
1675 * infcmd.c (step_once): Don't check '!single_inst' as it was
1676 checked before.
1677
1678 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1679
1680 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1681
1682 2013-01-14 Tom Tromey <tromey@redhat.com>
1683
1684 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1685 set command.
1686 * command.h (add_setshow_string_noescape_cmd): Update.
1687 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1688 (complete_set_gnutarget): New function.
1689 (_initialize_core): Set the "set gnutarget" completer.
1690
1691 2013-01-14 Tom Tromey <tromey@redhat.com>
1692
1693 PR symtab/14442:
1694 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1695 (c_type_print_modifier): Likewise.
1696 * dwarf2read.c (read_tag_restrict_type): New function.
1697 (read_type_die_1): Handle DW_TAG_restrict_type.
1698 * gdbtypes.c (make_restrict_type): New function.
1699 (recursive_dump_type): Handle TYPE_RESTRICT.
1700 * gdbtypes.h (enum type_flag_values): Renumber.
1701 (enum type_instance_flag_value): Add
1702 TYPE_INSTANCE_FLAG_RESTRICT.
1703 (TYPE_RESTRICT): New macro.
1704 (make_restrict_type): Declare.
1705
1706 2013-01-14 Tom Tromey <tromey@redhat.com>
1707
1708 PR symtab/14931:
1709 * psymtab.c (struct psymtab_state): New.
1710 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1711 functions.
1712 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1713 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1714
1715 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1716 Pedro Alves <palves@redhat.com>
1717
1718 PR remote/14786
1719
1720 * remote.c (remote_threads_info): Make a copy of the reply from
1721 qfThreadInfo and use that instead of rs->buf.
1722
1723 2013-01-14 Yao Qi <yao@codesourcery.com>
1724
1725 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1726 (dbx_psymtab_to_symtab): Likewise.
1727 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1728 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1729 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1730
1731 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1732
1733 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1734 make_cleanup_restore_current_language. Call set_language. Move
1735 OLD_CHAIN and INNER_CHAIN cleanups.
1736 * utils.c (do_restore_current_language)
1737 (make_cleanup_restore_current_language): New functions.
1738 * utils.h (make_cleanup_restore_current_language): New declaration.
1739
1740 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1741
1742 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1743 non-existing files.
1744
1745 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1746 non-existing files if FILENAME is already absolute.
1747
1748 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1749
1750 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1751 fputs_filtered. Append trailing newline.
1752
1753 2013-01-11 Yao Qi <yao@codesourcery.com>
1754 Stan Shebs <stan@codesourcery.com>
1755
1756 * psymtab.c (init_psymbol_list): Clarify the comment.
1757
1758 2013-01-11 Yao Qi <yao@codesourcery.com>
1759
1760 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1761 (update_dprintf_command_list): Assert that 'printf_line' is
1762 non-null. Remove condition check.
1763
1764 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1765
1766 Code cleanup.
1767 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1768 type const char *.
1769 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1770 const char *.
1771 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1772
1773 2013-01-09 Anthony Green <green@moxielogic.com>
1774
1775 * cp-abi.c (cplus_print_vtable): Don't return value from void
1776 function.
1777 * ada-lang.c (re_set_catch_assert): Ditto.
1778
1779 2013-01-09 Doug Evans <dje@google.com>
1780
1781 * symfile.h (quick_symbol_functions): Delete member
1782 pre_expand_symtabs_matching. All uses removed.
1783 * dwarf2read.c (dw2_lookup_symbol): Implement.
1784 (dw2_do_expand_symtabs_matching): Delete.
1785 (dw2_pre_expand_symtabs_matching): Delete.
1786 (struct dw2_symtab_iterator): New type.
1787 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1788 (dw2_expand_symtabs_for_function): Rewrite.
1789 (dwarf2_gdb_index_functions): Update.
1790 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1791 (psym_functions): Update.
1792
1793 2013-01-09 Tom Tromey <tromey@redhat.com>
1794
1795 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1796 * configure: Rebuild.
1797 * configure.ac: Add somread.o to the build if BFD has SOM
1798 support.
1799 * somread.c: Include som/aout.h, not syms.h.
1800 (som_symtab_read): Use som_external_symbol_dictionary_record.
1801 Unpack records manually.
1802 (_initialize_somread): Declare.
1803
1804 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1805
1806 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1807 Cast return_address to 64bits.
1808
1809 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1810
1811 * printcmd.c: Remove define of function output_command.
1812 * tracepoint.c: Remove extern of function output_command.
1813 * valprint.h: (output_command): New extern.
1814
1815 2013-01-07 Tom Tromey <tromey@redhat.com>
1816
1817 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1818 Remove.
1819 (objc_language_defn): Use c_printchar, c_printstr,
1820 c_emit_char.
1821
1822 2013-01-07 Tom Tromey <tromey@redhat.com>
1823
1824 PR cli/7719:
1825 * NEWS: Update.
1826 * ada-valprint.c (printstr, print_field_values): Remove
1827 "inspect_it" code.
1828 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1829 code.
1830 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1831 code.
1832 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1833 * main.c (captured_main): Remove "epoch" argument.
1834 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1835 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1836 * p-valprint.c (pascal_object_print_value_fields): Remove
1837 "inspect_it" code.
1838 * printcmd.c (print_command_1): Remove 'inspect' argument.
1839 (print_command, call_command): Update.
1840 (inspect_command): Remove.
1841 (_initialize_printcmd): Make "inspect" an alias for "print".
1842 * top.c (epoch_interface): Remove.
1843 * top.h (epoch_interface): Remove.
1844 * valprint.c (user_print_options): Update.
1845 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1846 * valprint.h (struct value_print_options) <inspect_it>: Remove
1847 field.
1848
1849 2013-01-04 Tom Tromey <tromey@redhat.com>
1850
1851 * valprint.h (read_string): Add 'extern'.
1852
1853 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1854
1855 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1856 used to decide whether to define darwin_read_dyld_info or not.
1857
1858 2013-01-03 Pierre Muller <muller@sourceware.org>
1859
1860 * main.c (relocate_gdb_directory): Avoid calling stat function
1861 if DIR is empty.
1862
1863 2013-01-03 Yao Qi <yao@codesourcery.com>
1864
1865 * psymtab.c (fixup_psymbol_section): Update declaration.
1866 (fixup_psymbol_section): Remove code returning value.
1867
1868 2013-01-03 Yao Qi <yao@codesourcery.com>
1869
1870 * symtab.h: Remove some out of date comments.
1871 (enum exception_event_kind): Move it ...
1872 * breakpoint.c: ... here.
1873
1874 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1875
1876 PR gdb/14405
1877 * darwin-nat.c (darwin_read_dyld_info): Only build if
1878 TASK_DYLD_INFO_COUNT is defined.
1879 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1880 TASK_DYLD_INFO_COUNT is defined.
1881
1882 2013-01-02 Tom Tromey <tromey@redhat.com>
1883
1884 * symfile.h (struct ecoff_debug_hack): Remove.
1885 * objfiles.c: Don't include mdebugread.h.
1886
1887 2013-01-02 Tom Tromey <tromey@redhat.com>
1888
1889 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1890 * configure.ac: Check for Mach-O support in BFD. Update
1891 CONFIG_OBS.
1892 * configure: Rebuild.
1893
1894 2013-01-02 Tom Tromey <tromey@redhat.com>
1895
1896 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1897 * configure.ac: Use GDB_AC_CHECK_BFD.
1898 * configure: Rebuild.
1899
1900 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1901
1902 * MAINTAINERS: Update my email.
1903
1904 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1905
1906 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1907
1908 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1909
1910 * rs6000-nat.c (bss_data_overlap): New function.
1911 (vmap_symtab): Use it to adjust the .bss section's offset.
1912
1913 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1914
1915 Update year range in copyright notice of all files.
1916
1917 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1918
1919 * top.c (print_gdb_version): Update copyright year.
1920
1921 For older changes see ChangeLog-2012.
1922 \f
1923 Local Variables:
1924 mode: change-log
1925 left-margin: 8
1926 fill-column: 74
1927 version-control: never
1928 coding: utf-8
1929 End:
This page took 0.094585 seconds and 4 git commands to generate.