Bug 12708 - CU expansion problem for parameters
Summary: CU expansion problem for parameters
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: symtab (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Jan Kratochvil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 18:32 UTC by Jan Kratochvil
Modified: 2011-05-06 13:58 UTC (History)
1 user (show)

See Also:
Host:
Target: x86_64-unknown-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2011-04-27 18:32:48 UTC
typedef int int_typedef;
void f (int_typedef x) {}

gcc -c -g

./gdb-clean -q -nx ./1.o -ex "complete b 'f(" -ex q
b 'f(int)

./gdb-clean -readnow -q -nx ./1.o -ex "complete b 'f(" -ex q
b 'f(int)
b 'f(int_typedef)

-readnow should never affect GDB user visible behavior.
Comment 1 Jan Kratochvil 2011-04-28 16:51:00 UTC
The dependency on CU expansion is a physname regression.
But the feature of originally-typed-parameters symbols was not present before physname at all.

+ prephysname
b 'f(int)
+ prephysname -readnow
b 'f(int)

+ physname
b 'f(int)
+ physname -readnow
b 'f(int)
b 'f(int_typedef)

+ HEAD
b 'f(int)
+ HEAD -readnow
b 'f(int)
b 'f(int_typedef)
Comment 2 Jan Kratochvil 2011-04-28 19:52:20 UTC
[patch] physname-related CU expansion issue for C++ (PR 12708)
http://sourceware.org/ml/gdb-patches/2011-04/msg00551.html
Comment 3 Jan Kratochvil 2011-05-06 13:58:10 UTC
[commit+commit 7.3] [patch] physname-related CU expansion issue for C++ (PR 12708)
http://sourceware.org/ml/gdb-patches/2011-05/msg00185.html